I\'ve been studying folds for the past few days. I can implement simple functions with them, like length, concat and filter. What I\'m stu
length
concat
filter
here is a simple delete, implemented with foldr:
delete :: (Eq a) => a -> [a] -> [a] delete a xs = foldr (\x xs -> if x == a then (xs) else (x:xs)) [] xs