Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
edadma committed Dec 25, 2018
1 parent c932f62 commit 2c25527
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,22 @@ grandmother( X, Y ) :- female( X ), grandparent( X, Y ).
grandfather( X, Y ) :- male( X ), grandparent( X, Y ).
```

This example is contained in the repo as `examples/family_tree`. Run the REPL (repeat-evaluate-print-loop) and type

;l examples/family_tree

to load the example. To get a list of all the persons in the family tree who are fathers, type

father( X, _ )*

#### Output

X = don

X = liam

X = logan

### Library

This example program shows how to
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2c25527

Please sign in to comment.