I have a function 'subsets' which generate all the subsets of a given set:
subsets :: [Int] -> [[Int]]
subsets [] = [[]]
subsets (x:xs) = subsets xs ++ map (x:) (subsets xs)
How can I combine map, foldl and filter in another function to return me all the subsets with elements that sum up to 0?
**Example: **
set = [1,-1,5,2,-2,3]
result = [[1,-1],[2,-2],[-1,-2,3]]