Power set: Difference between revisions
Content added Content deleted
(Add Nimrod) |
(update) |
||
Line 2,729: | Line 2,729: | ||
Using a combinations function, build the power set from combinations of 1,2,... items. |
Using a combinations function, build the power set from combinations of 1,2,... items. |
||
<lang zkl>fcn pwerSet(list){ |
<lang zkl>fcn pwerSet(list){ |
||
(0).pump(list.len(),List, |
(0).pump(list.len(),List, Utils.Helpers.pickNFrom.fp1(list), |
||
T( |
T(Void.Write,Void.Write) ) .append(list) |
||
}</lang> |
}</lang> |
||
{{out}} |
{{out}} |