Hello im trying to remove elements from a list which applies to my function as such: removeBy even [1..10] → [1,3,5,7,9] or removeBy (=='a' ) ['b' , 'a' ,'c' ] → "bc"
using high order functions like map, foldl, foldr, and filter what i did is
removeBy :: (a -> Bool) -> [a] -> [b]
removeBy function list = map function list
when i try to run example 1 with even i get
Variable not in scope: removeBy :: (a0 -> Bool) -> [a1] -> t
Anyone can help me?