STArray
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.
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.
Construct an array from a pair of bounds and a list of values in index order.
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.
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.