Added example with nested predicate arguments.

This commit is contained in:
Patrick Lühne 2017-06-12 03:05:21 +02:00
parent eb730b9f8b
commit d7641aa410
No known key found for this signature in database
GPG Key ID: 05F3611E97A70ABF
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
a(X, Y) :- b(c(X - 1), d(e(1 + Y))).
b(c(X), d(Y)) :- c(X), d(Y).
c(1..3).
d(e(8..9)).
#show a/2.
%#show b/2.
%#show c/1.
%#show d/1.