アトムと1文字アトムのリストの関係を定義する。...
移動
次へ 前へ
上へ 最上
参考
atom_chars/2
atom_codes/2
atom_concat/3
atom_concat/2
atom_length/2
atom_number/2
atom_lower/2
atom_upper/2
char_code/2
number_chars/2
number_codes/2
parse_atom/2/3
sub_atom/5
write_atom/2
writeq_atom/2
イフコンピュータ > MINERVA > マニュアル > レファレンス > 述語 > アトム項処理 > atom_chars/2

atom_chars/2

アトムと1文字アトムのリストの関係を定義する。

atom_chars(-アトム, +リスト)
atom_chars(+アトム, ?リスト)

もし、アトム が アトムならば、atom_chars/2 アトムを1文字アトムのリストにする。
もし、アトム が変数ならば、リスト は、1文字アトムのリストでなければならない。atom_chars/2は、文字のリストを連結してアトム アトムを生成する。

引数

アトム             アトム
リスト             文字リスト (長さ1のアトムからなるリスト)

atom_chars(abcde, L). L <- [a,b,c,d,e]. の代入で、成功。
atom_chars(A, [l,i,s,t]). A <- list の代入で、成功。
atom_chars(list, [l,I,s,T]). I <- i, T<- t の代入で、成功。

標準

この述語は、ISO-Prolog標準に含まれる。

関連

atom_codes/2, atom_concat/3, atom_length/2, atom_number/2, char_code/2, number_chars/2, number_codes/2, parse_atom/2/3, sub_atom/5.

続く..
MINERVA
ifcomputer logo
f
Expert Services on the Web
言語
English
Japanese
サーバー
USA
Japan
サイトマップ
索引
目次
全体目次
全体索引
印刷向き
imode
PDA
探索
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/atomic_term/atom_chars/home_jp.html
published 2008/10/13 update 1998/8/11 (c) 1996-2006 IF Computer Japan
IF Computer 〒113-0022 Tel 03-5814-3352 start (AT) ifcomputer.com
Customer Support 東京都文京区千駄木5-28-2   http://www.ifcomputer.co.jp
冒頭へ managed with ubiCMS