IF Computer > MINERVA > Manual > Reference > Predicates > Term unification > \=/2

\=/2

MINERVA
ifcomputer logo
f
Expert Services on the Web

tests whether two terms are not unifiable.

?Term1 \= ?Term2
\=(?Term1, ?Term2)

'\='/2 succeeds when Term1 and Term2 are not unifiable and fails if they are unifiable.

'\='/2 is a predefined infix-operator with priority 700 which is non-associative (see also current_op/3).

Arguments

Term1                  term
Term2                  term

Examples

\=(7,7.00). Succeeds.
X=a, f(X,b) \= f(b,b). Succeeds.
f(g(X),X) \= f(Y,write(a)). Fails.

Standard

This predicate is part of the ISO-Prolog Standard.

See also

'='/2, unify_with_occurs_check/2.

document: http://www.ifcomputer.co.jp/MINERVA/Manual/Reference/Predicates/term_unification/not_unifiable/print_en.html
published 2008/9/1 update 1998/8/7 (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
Back> managed with ubiCMS