21 Jul
2004
21 Jul
'04
8:47 a.m.
Jinwoo Lee wrote:
Hi,
I'm a Haskell newbie.
I was trying several things with GHCi and found out that the expression "let a + b = 3" does not generate any errors.
Prelude> let a + b = 3
Try this: Prelude> let a + b = 3 Prelude> 5+11 3 Your `let a+b=3' has redefined `+' to be a function always evaluating to 3. `a' and `b' are formal parameters of the newly defined function. Martin