PR Stanley wrote:
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).

Why should it be so?

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.

You can get the same behavior with

 f . g $ x

if you mislike brackets.

--
Dr. Janis Voigtlaender
http://wwwtcs.inf.tu-dresden.de/~voigt/
mailto:[EMAIL PROTECTED]
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to