Mutable boxed and unboxed arrays in the `ST` monad.
Mutable boxed and unboxed arrays in the ST
monad.
ST
is a monad in which a limited type of side effects are allowed, namely mutable references and mutable arrays. Thus it allows you to implement functions which are pure as seen from the outside world, but which use mutation internally.