3 lines
91 B
Haskell
3 lines
91 B
Haskell
|
|
powerset [] = [[]]
|
||
|
|
powerset (head:tail) = acc ++ map (head:) acc where acc = powerset tail
|