I've got it working the following way. It is very inelegant but it shows the idea. (be woman (Ann)) #-> woman (prove (goal (woman @X))) # wrong #!? (woman @X) #woman -- Undefined (prove (goal '((woman @X)))) #quoted list can contain multiple statements #-> ((@X . Ann)) (be loves (Mark Ann)) #-> loves (be loves (Mark Max)) #-> loves (prove (goal '((loves Mark @X) (woman @X)))) #as is seen here #-> ((@X . Ann)) does that help?
I'm going through the "Learn Prolog Now!" ebook and I ran into this query:
?- loves(marsellus,X), woman(X).And I can't figure out how to do it in pilog.Is there a function that can test multiple queries at once, like or/2 does? thanks | ||
- A query in Pilog Bruno Franco
- Re: A query in Pilog Johann-Tobias Schäg
- Re: A query in Pilog Bruno Franco
- Re: A query in Pilog Bruno Franco
- Re: A query in Pilog Johann-Tobias Schäg
- Re: A query in Pilog Bruno Franco
- Re: A query in Pilog David Bloom
- Re: A query in Pilog George Orais
