[Haskell-cafe] Assignment, Substitution or what?

PR Stanley prstanley at ntlworld.com
Mon Oct 1 16:44:09 EDT 2007


> > f x = x + x
> > Is the "x" use to create a pattern in the definition and when f is
> > called it's replaced by a value?
>
>Those equation-like definitions are syntactic sugar for lambda
>abstractions. f could as well be defined as f = \x -> x + x.

Please elaborate 



More information about the Haskell-Cafe mailing list