subsumes_term/2 (from ISO and UD #173).

This commit is contained in:
Vitor Santos Costa 2010-08-04 21:46:10 +01:00
parent 8592db72d7
commit cf3cb21fd7
2 changed files with 14 additions and 0 deletions

View File

@ -3350,6 +3350,16 @@ is bound to the empty list (nil) or a term with functor '.' and arity 2.
Same as @code{variant/2}, succeeds if @var{Term1} and @var{Term2} are variant terms.
@item subsumes_term(?@var{Subsumer}, ?@var{Subsumed})
@findex subsumes_term/2
@syindex subsumes_term/2
@cnindex subsumes_term/2
Succeed if @var{Submuser} subsumes @var{Subsuned} but does not bind any
variable in @var{Subsumer}.
@end table
@node Predicates on Atoms, Predicates on Characters, Testing Terms, Top

View File

@ -643,3 +643,7 @@ nb_current(GlobalVariable, Val) :-
).
subsumes_term(A,B) :-
\+ \+ terms:subsumes(A,B).