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
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF

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.