unifies two terms, where the occurs check will be taken in account....
Move to
Next Prev
Up Top
See also
\=/2
=/2
unifiy_with_occurs_check/2
IF Computer > MINERVA > Manual > Reference > Predicates > Term unification > unifiy_with_occurs_check/2

unifiy_with_occurs_check/2

unifies two terms, where the occurs check will be taken in account.

unify_with_occurs_check(?Term1, ?Term2)

'='/2 succeeds when Term1 and Term2 are unifiable in such a way that they are identical and fails if they are not unifiable and identical.
The difference to =/2 is that the predicate fails, if you try to create an inifite term.

Arguments

Term1                  term
Term2                  term

Examples

unify_with_occurs_check(f(X,1), f(1,X)). Succeeds with substitution X <- 1.
unify_with_occurs_check(f(X),X). Fails.

Standard

This predicate is part of the ISO-Prolog Standard.

See also

=/2, \=/2.

read on...
MINERVA
ifcomputer logo
f
Expert Services on the Web
Language
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/term_unification/unify_with_occurs_check/home_en.html
published 2013/5/20 update 1998/8/7 (c) 1996-2009 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