include min and max of lists

This commit is contained in:
Vitor Santos Costa
2013-09-11 22:01:18 +01:00
parent 23b860a977
commit 9d4c7a5c8c
2 changed files with 92 additions and 4 deletions

View File

@@ -22,3 +22,12 @@ test3(A) :-
lex_chain(A),
all_different(A),
labeling([], [X,Y,Z]).
test4(A) :-
A = [X,Y,Z],
A ins 1..4,
Y #> 2,
Z #> 3,
lex_chain(A),
min(A, 1),
all_different(A),
labeling([], [X,Y,Z]).