[Haskell-cafe] (no subject)
KC
kc1956 at gmail.com
Mon Apr 23 22:51:03 CEST 2012
buildPair =
do
arr <- newArray ((1,1),(1,10)) 37 :: ST s (STArray s (Int,Int) Int)
a <- readArray arr (1,1)
writeArray arr (1,1) 64
b <- readArray arr (1,1)
return (a,b)
main = print $ runST buildPair
--
--
Regards,
KC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120423/f9ad2a32/attachment.htm>
More information about the Haskell-Cafe
mailing list