[Haskell-cafe] Assignment, Substitution or what?

Malte Milatz malte at gmx-topmail.de
Mon Oct 1 15:18:49 EDT 2007

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

More information about the Haskell-Cafe mailing list