Skip to content

Commit

Permalink
Added example on how to use the new lt predicate.
Browse files Browse the repository at this point in the history
Try to read the program in `num.pl` and then use the query 
    
    ?- max(3,6, Result).
  • Loading branch information
kfl committed Jul 8, 2010
1 parent 3e34e2a commit f506074
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions num.pl
@@ -0,0 +1,2 @@
max(X,Y,X) :- lt(Y,X).
max(X,Y,Y) :- lt(X,Y).

0 comments on commit f506074

Please sign in to comment.