sitelogo
atom_length/2

アトムの文字数を単一化する。

atom_length(+アトム, -数)

atom_length/2 は、アトムの文字数で、を単一化する。

引数

アトム             アトム
数                 整数 >= 0

atom_length('this is quite a long text', N). N <- 25 の代入で、成功。
atom_length('four', 4). 成功
atom_length('five', 5). 失敗.

標準

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

関連

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


戻る 続く..
冒頭へ managed with ubiCMS