RosettaCodeData/Task/Combinations/Picat/combinations-2.picat

2 lines
74 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
comb2(K, N) = sort([[J : J in I] : I in power_set(1..N), I.length == K]).