RosettaCodeData/Task/Combinations/V/combinations-1.v
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

6 lines
171 B
Coq

[comb [m lst] let
[ [m zero?] [[[]]]
[lst null?] [[]]
[true] [m pred lst rest comb [lst first swap cons] map
m lst rest comb concat]
] when].