I have written a member function, to check if an element exists in a list.
member(X, [X|_]).
member(X, [_|Y]) :- member(X, Y).
I load the .pl file into SWI prolog, and I get no warnings or errors pertaining to member. I test the member function using...
member(A, [1,2,3,4]).
This, obviously should return false. Instead I get
A = 1
Then when I try to enter new commands, the ide just shows me the key I typed, and says unknown action "what ever key i pressed"
I think my member function is sound, as it matches one written by my professor.
Any ideas?