Anonymous user
Power set: Difference between revisions
Code crunch
(Added zkl) |
(Code crunch) |
||
Line 2,603:
Using a combinations function, build the power set from combinations of 1,2,... items.
<lang zkl>fcn pwerSet(list){
(0).pump(list.len(),List,List,Utils.Helpers.pickNFrom.fp1(list)
}</lang>
{{out}}
|