Question : delete a as haskell
Answered by : marton
removeItem _ [] = []
removeItem x (y:ys) | x == y = removeItem x ys | otherwise = y : removeItem x ys
Source : https://stackoverflow.com/questions/2097501/learning-haskell-how-to-remove-an-item-from-a-list-in-haskell | Last Update : Fri, 04 Dec 20