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