我正在玩Haskell,但我无法弄清楚为什么反向函数应用程序运算符(&)不起作用.
例如在ghci我得到:
Prelude> "hello" & length <interactive>:1:9: error: Variable not in scope: (&) :: [Char] -> ([a0] -> Int) -> t
当我期望它返回5
为什么不起作用?
haskell
haskell ×1