Haskell function to recursively remove all occurrences of a given value in a list

前端 未结 0 1378
情话喂你
情话喂你 2021-02-05 06:26

For example, myRemove 2 [2,1,2,3,2,1,2,3,4] = [1,3,1,3,4]

Here\'s what I\'ve done so far

myRemove :: a -> [b] ->[b]
myRemove a [] = []
m         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题