From 6ae2e2bb7bebdc3f4d450f1ddc6c69a02c3f4998 Mon Sep 17 00:00:00 2001 From: Peter Mikkelsen Date: Tue, 29 Jun 2021 17:51:20 +0000 Subject: Parse lists and {a,b,c} syntax (What is this even called?) --- example.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'example.pl') diff --git a/example.pl b/example.pl index dce8533..67c0db3 100644 --- a/example.pl +++ b/example.pl @@ -11,4 +11,9 @@ likes(sam, ice). could_be_friends(Person1, Person2) :- likes(Person1, Thing1), likes(Person2, Thing2), - Thing1 = Thing2. \ No newline at end of file + Thing1 = Thing2. + +list1(A) :- A = [1,2,3,4]. +list2(A) :- A = [a,b|c]. + +curly(A) :- A = {one,two,three}. \ No newline at end of file -- cgit v1.2.3