Added example with nested predicate arguments.
This commit is contained in:
parent
eb730b9f8b
commit
d7641aa410
9
examples/nested-arguments.lp
Normal file
9
examples/nested-arguments.lp
Normal 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.
|
Loading…
Reference in New Issue
Block a user