I'm playing around with Haskell, but I can't figure out why the reverse function application operator (&) is not working.
For example in ghci I get:
Prelude> "hello" & length
<interactive>:1:9: error:
Variable not in scope: (&) :: [Char] -> ([a0] -> Int) -> t
When I expect it to return 5
Why is it not working?
Data.Functionmodule, and not reimported in thePrelude, so you need to import it yourself.