RosettaCodeData/Task/Combinations/V/combinations-2.v

7 lines
194 B
Coq
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
[comb
[ [pop zero?] [pop pop [[]]]
[null?] [pop pop []]
[true] [ [m lst : [m pred lst rest comb [lst first swap cons] map
m lst rest comb concat]] view i ]
] when].