summaryrefslogtreecommitdiff
path: root/example.pl
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-06-29 18:21:31 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-06-29 18:21:31 +0000
commit50768fba487e1ec08278cdc4be614863db32a5c4 (patch)
tree79f0e2f6724d2311a298fd58cab4e60a81c4c43b /example.pl
parent64a411ede2df42eea0e6905a4985a3e54057c677 (diff)
Make parse return a list of clauses. Also pretty print the entire list of clauses.
Diffstat (limited to 'example.pl')
-rw-r--r--example.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/example.pl b/example.pl
index f5305d9..6fff9b3 100644
--- a/example.pl
+++ b/example.pl
@@ -16,6 +16,7 @@ likes(sam, ice).
could_be_friends(Person1, Person2) :-
likes(Person1, Thing1),
likes(Person2, Thing2),
+ !,
Thing1 = Thing2.
list1(A) :- A = [1,2,3,4].