SR2*_*R23 -1 haskell parse-error
我应该在Haskell中编写一个小函数,它应该擦除列表中两次的元素.不幸的是,Haskell抱怨"输入错误'|'' ".有人可以帮我吗?
makeSets=mSet[]s
where
mSet stack []=stack
mSet stack (x:xs)
|contains stack x=mSetstack xs
| otherwise =mSet (x:stack) xs
where
contains [] thing=False
contains (x:xs)thing
| x==thing=True
|otherwise=contains xs thing
Run Code Online (Sandbox Code Playgroud)