Author(s): Daniel Cabeza, Manuel Hermenegildo.
Version: 1.11#222 (2004/5/24, 13:8:7 CEST)
Version of last change: 1.11#204 (2004/2/27, 19:38:32 CET)
This module contains the set of basic control predicates, except the predicates dealing with exceptions, which are in section Exception handling.
basiccontrol
)basiccontrol
)
P , Q
Conjunction (P
and Q
).
Meta-predicate with arguments: goal,goal
.
Usage: * ISO *
P
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
Q
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
P ; Q
Disjunction (P
or Q
).
Meta-predicate with arguments: goal;goal
.
Usage: * ISO *
P
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
Q
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
P -> Q
If P
then Q
else fail, using first solution of P
only. Also, (
P
->
Q
;
R
)
, if P
then Q
else R
, using first solution of P
only. No cuts are allowed in P
.
Meta-predicate with arguments: goal->goal
.
Usage: * ISO *
P
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
Q
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
Usage: * ISO *
\+ P
Goal P
is not provable (negation by failure). Fails if P
has a solution, and succeeds otherwise. No cuts are allowed in P
.
Meta-predicate with arguments: \+goal
.
Usage: * ISO *
P
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
not(X)
.
(basic_props:native/2
)
if(P, Q, R)
If P
then Q
else R
, exploring all solutions of P
. No cuts are allowed in P
.
Meta-predicate with arguments: if(goal,goal,goal)
.
Usage:
P
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
Q
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
R
is a term which represents a goal, i.e., an atom or a structure.
(basic_props:callable/1
)
Usage: * ISO *
basic_props:native/1
)
Usage: * ISO *
basic_props:native/1
)
Usage: * ISO *
basic_props:native/1
)
No further documentation available for this predicate.
No further documentation available for this predicate.
Usage:
Arg1
is an integer.
(basic_props:int/1
)
basic_props:native/1
)
Usage:
Arg1
is an integer.
(basic_props:int/1
)
basic_props:native/1
)
No further documentation available for this predicate.
No further documentation available for this predicate.
No further documentation available for this predicate.
No further documentation available for this predicate.
basiccontrol
)An alias for disjunction (when appearing outside a list). The alias is performed when terms are read in.
Go to the first, previous, next, last section, table of contents.