summaryrefslogtreecommitdiff
path: root/example.pl
blob: dce8533caaba5414c1ccfed9e199ffbc5d3668b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
:- dynamic(math/4).

math(A,B,C,D) :- D is A + B + C * A.

true.

likes(bob, ice).
likes(sam, text).
likes(sam, ice).

could_be_friends(Person1, Person2) :-
	likes(Person1, Thing1),
	likes(Person2, Thing2),
	Thing1 = Thing2.