Skip to content

Instantly share code, notes, and snippets.

@samuell
Created April 8, 2018 01:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuell/2bae7afd4eb337834449ab6bec88d19c to your computer and use it in GitHub Desktop.
Save samuell/2bae7afd4eb337834449ab6bec88d19c to your computer and use it in GitHub Desktop.
parent(mark, jim).
parent(sam, mark).
grandparent(Grandparent, Child) :-
parent(Grandparent, Parent),
parent(Parent, Child).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment