Created
July 16, 2010 03:25
-
-
Save matthewfl/477884 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| faster(X,Y) :- faster(X,Z), faster(Z,Y). | |
| eat(X,Y) :- faster(X,Y), carnivore(X). | |
| eat(lion, zebra). | |
| faster(zebra, dog). | |
| carnivore(dog). | |
| % then I try | |
| eat(lion, X). % and I only get zebra |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment