STArray

data STArray s i e :: * -> * -> * -> *
array Data.Array.ST, array Data.Array.ST.Safe
Mutable, boxed, non-strict arrays in the ST monad. The type arguments are as follows: * s: the state variable argument for the ST type * i: the index type of the array (should be an instance of Ix) * e: the element type of the array.
listArray :: (IArray a e, Ix i) => (i, i) -> [e] -> a i e
array Data.Array.IArray
Constructs an immutable array from a list of initial elements. The list gives the elements of the array in ascending order beginning with the lowest index.
listArray :: Ix i => (i, i) -> [e] -> Array i e
array Data.Array
Construct an array from a pair of bounds and a list of values in index order.
newListArray :: (MArray a e m, Ix i) => (i, i) -> [e] -> m (a i e)
array Data.Array.MArray, array Data.Array.MArray.Safe
Constructs a mutable array from a list of initial elements. The list gives the elements of the array in ascending order beginning with the lowest index.
runSTArray :: Ix i => (forall s. ST s (STArray s i e)) -> Array i e
array Data.Array.ST, array Data.Array.ST.Safe
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.