I would like to remove all occurrences of a given value from the list of lists. For example, input:
'a' ["abc", "bc", "aa"]
exit:
["bc", "bc", ""]
:
remove :: Eq a => a -> [[a ]] -> [[a ]] remove y xs = filter(\x -> x/= y) xs
I get an error, thanks in advance.
source share