Author(s): Daniel Cabeza.
Version: 1.11#222 (2004/5/24, 13:8:7 CEST)
Version of last change: 1.11#199 (2004/2/17, 17:20:14 CET)
This module implements some miscellaneous ISO Prolog predicates.
iso_misc
)iso_misc
)
X \= Y
X
and Y
are not unifiable.
once(G)
Finds the first solution of goal G
(if any).
once/1
behaves as
call/1
, except that no further solutions are explored on backtracking.
Meta-predicate with arguments: once(goal)
.
compound(T)
T
is currently instantiated to a compound term.
sub_atom(Atom, Before, Length, After, Sub_atom)
Is true iff atom Atom
can be broken into three pieces, AtomL
, Sub_atom
and AtomR
such that Before
is the number of characters of the name of AtomL
, Length
is the number of characters of the name of Sub_atom
and After
is the number of characters of the name of AtomR
unify_with_occurs_check(X, Y)
Attempts to compute and apply a most general unifier of the two terms X
and Y
. Is true iff X
and Y
are unifiable.
Go to the first, previous, next, last section, table of contents.