Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Combinations/V/combinations-1.v
Normal file
6
Task/Combinations/V/combinations-1.v
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[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].
|
||||
6
Task/Combinations/V/combinations-2.v
Normal file
6
Task/Combinations/V/combinations-2.v
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[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].
|
||||
8
Task/Combinations/V/combinations-3.v
Normal file
8
Task/Combinations/V/combinations-3.v
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[comb
|
||||
[2dup [a b : a b a b] view].
|
||||
[2pop pop pop].
|
||||
|
||||
[ [pop zero?] [2pop [[]]]
|
||||
[null?] [2pop []]
|
||||
[true] [2dup [pred] dip uncons swapd comb [cons] map popd rollup rest comb concat]
|
||||
] when].
|
||||
Loading…
Add table
Add a link
Reference in a new issue