データベースのなかの、述語の存在を確認します。...
移動
次へ 前へ
上へ 最上
参考
clause/2
current_predicate/1
イフコンピュータ > MINERVA > マニュアル > レファレンス > 述語 > 節の検索と情報 > current_predicate/1

current_predicate/1

データベースのなかの、述語の存在を確認します。

current_predicate(+述語)

current_predicate/1 は、指定の述語のデータベース内の存在を確認します。

引数

述語              複合項 (アトム/整数)

以下のユーザ定義述語をもつデータベースがあるとする。

colour(red).
colour(white).
colour(red,green,blue).

current_predicate(colour/1). 成功します。
current_predicate(add/2). 失敗.

標準

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

標準に反して、引数には変数が許されません。

関連

clause/2.

続く..
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/clause_retrieve/current_predicate/home_jp.html
published 2008/9/1 update 2003/2/26 (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