I have been trying to program a function that takes two lists, and returns a list of the items from list one that DO NOT APPEAR in the list 2. This is the code I have so far. The road block that I am running into is that I can't figure out how to test false on my member() line.
%remove_them/3
remove_them([H|T],List,[Newhead|NewTail]):-
not(member(H,List)),
Newhead is H,
remove_them(T,List,NewTail).
remove_them([H|T],List,NewList):-
member(H,List),
remove_them(T,List,NewList).