Helper functions for working with mutable arrays using the
This module can be used when performance is important and mutation is a local effect.
A reference to a mutable array.
The first type parameter represents the memory region which the array belongs to. The second type parameter defines the type of elements of the mutable array.
The runtime representation of a value of type
STArray h a is the same as that of
except that mutation is allowed.
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.