j
k
j a
j l
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); };
I want to implement something like the C idea of: n += i So how does one doe this in Haskell?
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
Back to the thread
Back to the list