Reputation: 2085
Currently I have this function:
removeNull strList = filter (not . null) strList
But I need to use map (I assume) to apply it to a list of lists, but I'm getting type errors.
In GHCi, the functions filters this correctly:
removeNull ["i", "", "b"]
["i","b"]
But this doesn't filter:
removeNull [["i", "", "b"], ["i", "", "b"]]
[["i","","b"],["i","","b"]]
Upvotes: 3
Views: 98