[Haskell-cafe] Change value of a variable
ptrash
ptrash at web.de
Sun Jun 7 13:41:56 EDT 2009
Hi, how can I change the value of a variable.
let x = 1
x = x + 2
First I set the value of x to 1. Then I want to increase it by 2. This way
doesn't work, because I think it is a infinite expression.
Is there a way to change the value?
--
View this message in context: http://www.nabble.com/Change-value-of-a-variable-tp23913404p23913404.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
More information about the Haskell-Cafe
mailing list