Z.p*_*yyy 1 haskell tuples switch-statement
在 Haskell 中使用 case 表达式时遇到问题。
filterSth::[a]->(b,c)->[a]
filterSth (x:xs) (b, c) =
case (b,c) of
(1,0) -> ...
(1,2) -> ...
...
Run Code Online (Sandbox Code Playgroud)
我可以做类似上面的事情吗?