One cent question

From: Cl?ment (google_at_philosophons.com)
Date: 04/22/04


Date: 21 Apr 2004 15:02:52 -0700

Hello,

Here is my very complex programm :

mylist([cheese, tomatos]).

Now, I'm asking Prolog :
member(X,mylist(Y)).

And I get the answer : No.
I think I know why the answer is No : it's because "mylist(Y)" is a
predicate, and not a list !
So, what do I have to do to get instead :

X= cheese;
X= tomatos;
No

 ?

Thanks for your help ...
Ciao !