Power set: Difference between revisions
Content added Content deleted
Line 1,441: | Line 1,441: | ||
<lang JavaScript>(function () { |
<lang JavaScript>(function () { |
||
// translating: powerset = foldr (\x acc -> acc ++ map (x:) acc) [[]] |
|||
function powerset(xs) { |
function powerset(xs) { |