RosettaCodeData/Task/Combinations/Prolog/combinations-1.pro
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07:00

7 lines
121 B
Prolog

:- use_module(library(clpfd)).
comb_clpfd(L, M, N) :-
length(L, M),
L ins 1..N,
chain(L, #<),
label(L).