One cent question
From: Cl?ment (google_at_philosophons.com)
Date: 04/22/04
- Next message: Martin Fuchs: "Re: One cent question"
- Previous message: Stephan Lehmke: "Re: Simulating inheritance with a metainterpreter"
- Next in thread: Martin Fuchs: "Re: One cent question"
- Reply: Martin Fuchs: "Re: One cent question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 !
- Next message: Martin Fuchs: "Re: One cent question"
- Previous message: Stephan Lehmke: "Re: Simulating inheritance with a metainterpreter"
- Next in thread: Martin Fuchs: "Re: One cent question"
- Reply: Martin Fuchs: "Re: One cent question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]