Boxed arrays
STArray · Declaration information is not available.
runSTArray :: (forall s. ST s (STArray s i e)) -> Array i e
A safe way to create and work with a mutable array before returning an
immutable array for later perusal. This function avoids copying
the array before returning it - it uses unsafeFreeze internally, but
this wrapper is a safe interface to that function.
Unboxed arrays
STUArray · Declaration information is not available.
runSTUArray :: (forall s. ST s (STUArray s i e)) -> UArray i e
A safe way to create and work with an unboxed mutable array before
returning an immutable array for later perusal. This function
avoids copying the array before returning it - it uses
unsafeFreeze internally, but this wrapper is a safe interface to
that function.
Overloaded mutable array interface
module Data.Array.MArray
- Maintainer
- libraries@haskell.org
- Portability
- non-portable (uses Data.Array.MArray)
- Copyright
- (c) The University of Glasgow 2001
- License
- BSD-style (see the file libraries/base/LICENSE)