[Haskell-cafe] How can i safely change the value of specified key ?

zaxis z_axis at 163.com
Thu Oct 22 03:28:14 EDT 2009


aaa <- newIORef ([]::[(Int,Int)])
writeIORef aaa [(1,1),(2,2),(3,3)] 

then if i want to change aaa to [(1,1),(2,222),(3,3)] , what's the best way
? 
re-write aaa is not permitted.

Sincerely!
-- 
View this message in context: http://www.nabble.com/How-can-i-safely-change-the-value-of-specified-key---tp26005244p26005244.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.



More information about the Haskell-Cafe mailing list