为什么 Haskell 使用“->”而不是“=”呢?这里举个例子,为什么下面的代码是错误的?
take m ys = case (m,ys) of
(0,_) = []
(_,[]) = []
(n,x:xs) = x : take (n-1) xs
或者
(\x = x * x)