Re: Newbie question on "statefullness"

12 Aug
2002
12 Aug
'02
4:31 a.m.
At 2002-08-11 23:48, I wrote:
I want to implement something like the C idea of: n += i
So how does one doe this in Haskell?
do { val <- readIORef n; writeIORef n (val + i); };
Or even... modifyIORef n ((+) i); -- Ashley Yakeley, Seattle WA
8318
Age (days ago)
8318
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ashley Yakeley