diff options
Diffstat (limited to 'example.pl')
-rw-r--r-- | example.pl | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -25,4 +25,10 @@ curly(A) :- A = {one,two,three}. =(A,A). -:- initialization(could_be_friends(bob, sam)).
\ No newline at end of file +length([], zero). +length([Head|Tail], suc(Length)) :- + length(Tail, Length). + +:- initialization(could_be_friends(bob, sam)). + +:- initialization(length([a,b,c,d], Len)). |