Trying to learn Haskell. I am trying to write a simple function to remove a number from a list without using built-in function (delete...I think). For the sake of simplicity, le
You can also do this as a list-comprehension
delete :: Eq a => a -> [a] -> [a] delete deleted xs = [ x | x <- xs, x /= deleted ]