📜  删除一个作为haskell代码示例

📅  最后修改于: 2022-03-11 14:53:35.229000             🧑  作者: Mango

代码示例1
removeItem _ []                 = []
removeItem x (y:ys) | x == y    = removeItem x ys
                    | otherwise = y : removeItem x ys