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.

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to