File: test20.elpi

package info (click to toggle)
elpi 2.0.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 50,296 kB
  • sloc: ml: 18,791; makefile: 229; python: 95; sh: 7
file content (16 lines) | stat: -rw-r--r-- 250 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pred q o:int.
:functional
pred q' o:int.

:functional 
pred do' i:prop, i:(:functional pred).
do' X Y :- X, !, Y.

:functional
pred x o:int.

% similar to test19, with non-functional argument
% The variable Y_ is non
x Z :- do' (q Y_) (q' Z).

main.