The operations in this module handle lists by performing equality checks via identity instead of unification.
True iff memberchk/2 is true.
Checks that X is an element of (list) Xs.
Usage:list_insert(List,Term)
Adds Term to the end of (tail-opened) List if there is not an element in List identical to Term.
Usage:add_after(L0,E0,E,L)
Adds element E after the first element identical to E0 (or at end) of list L0, returning in L the new list.
Usage:add_before(L0,E0,E,L)
Adds element E before the first element identical to E0 (or at start) of list L0, returning in L the new list.
Usage:delete(List,Element,Rest)
Rest has the same elements of List except for all the occurrences of elements identical to Element.
Usage:subtract(Set,Set0,Difference)
Difference has the same elements of Set except those which have an identical occurrence in Set0.
Usage:union_idlists(List1,List2,List)
List has the elements which are in List1 but are not identical to an element in List2 followed by the elements in List2.