Member
member/2 has signature member(?Elem, ?List) and denotes true if Elem is a member of List. This predicate can be used to access variables in a list, where different solutions are retrieved through backtracking.
Example queries:
?- member(X, [1,2,3]).
X = 1 ;
X = 2 ;
X = 3.
?- member(X...