Next: mpg-ref-nonvar, Previous: mpg-ref-nodebug, Up: mpg-bpr [Contents][Index]
nonmember/2
nonmember(?Element, ?List)
is true if the given Element does not occur in the given List. Its purpose is to test for membership. Normally, the two arguments are ground.
term
list of term
In the context of this predicate, a term occurs in a list if it can be unified with an element of the list.
The predicate is determinate and either succeeds or fails. It never binds variables.
| ?- nonmember(bar, [foo,bar,baz]). no
None.
ref-lte-acl,
library(lists)
.