[Haskell-cafe] Function Precedence

PR Stanley prstanley at ntlworld.com
Tue Apr 1 06:40:35 EDT 2008


Hi
If
f x = x
and
g y = y
then
f g x
returns an error because f takes only one argument. Why can't we have 
function application implemented outwardly (inside-out). So
f g x would be applied with
gx first followed by its return value passed to f instead of putting 
g x in brackets.

Cheers,
Paul



More information about the Haskell-Cafe mailing list