
23 Aug
2001
23 Aug
'01
6:40 a.m.
I find two versions of Mutable arrays ie STArray and IOArray. What is the difference between them. Where each of them are supposed to be used?
STArray is for use in the ST monad (see the ST module), and IOArray is used in the IO monad. Otherwise, the behaviour is identical. Also check out MArray for overloaded mutable arrays, which let you abstract away from the actual monad and use the same function names for either - they even let you use strict unboxed arrays just by changing type signatures. Cheers, Simon
8672
Age (days ago)
8672
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow