[Haskell-cafe] Assignment, Substitution or what?

Andrew Coppin andrewcoppin at btinternet.com
Mon Oct 1 15:01:17 EDT 2007

PR Stanley wrote:
> Hi
> 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?

Basically, uh, yeah.

If you say "f 5", this is basically equivilent to "5 + 5" by the above 

(I'm sure a huge number of others will chime in on this one too...)

More information about the Haskell-Cafe mailing list