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 definition.

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

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to