Tests the predicate-indicators of the user-defined predicates in the database....
Move to
=> <=
Darueber Spitze
See also
clause/2
current_predicate/1
IF Computer > MINERVA > Manual > Reference > Predicates > Clause retrieval and information > current_predicate/1

current_predicate/1

Tests the predicate-indicators of the user-defined predicates in the database.

current_predicate(+Predicate)

current_predicate/1 tests if Predicate is defined in the MINERVA database.

Arguments

Predicate              compound ground term (atom/integer)

Examples

There exists a database with following user-defined predicates:

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

current_predicate(colour/1). Succeeds
current_predicate(add/2). Fails.

Standard

This predicate is part of the ISO-Prolog Standard.

In violation of the standard, the predicate does not allow variables in in the argument.

See also

clause/2.

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Sprache
English
Japanese
Server
USA
Japan
Site Access
Local Index
Local Contents
Site Contents
Site Index
Printer Friendly
For imode
For PDA
Search
document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/clause_retrieve/current_predicate/home_de.html
published 2008/9/1 update 2003/2/26 (c) 1996-2006 IF Computer Japan
IF Computer 5-28-2 Sendagi, Bunkyo-ku Tel +81-3-5814-3352 start (AT) ifcomputer.com
Customer Support Tokyo 113-0022 Japan   http://www.ifcomputer.com
scroll to top managed with ubiCMS