イフコンピュータ > MINERVA > マニュアル > レファレンス > 述語 > 型検査 > atom/1

atom/1

MINERVA
ifcomputer logo
f
Expert Services on the Web

引数がアトムかどうかを検査する。

atom(+項)

atom/1 は、がアトムならば成功し、そうでなければ失敗する。

引数

項                   項

atom('this is an atom'). 成功.
atom([]). 成功.
atom(Var). 失敗.
atom([a,t,o,m]). 失敗.

標準

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

関連

atomic/1, compound/1, float/1, integer/1, nonvar/1, number/1, var/1.

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/type_test/atom/print_jp.html
published 2008/12/1 update 1997/6/22 (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