Stability | experimental |
---|---|
Maintainer | Patrick Perry <patperry@stanford.edu> |
Mutable permutations in the ST
monad.
- data STPermute s
- runSTPermute :: (forall s. ST s (STPermute s)) -> Permute
- module Data.Permute.MPermute
Permutations
runSTPermute :: (forall s. ST s (STPermute s)) -> PermuteSource
A safe way to create and work with a mutable permutation before returning an immutable one for later perusal. This function avoids copying the permutation before returning it - it uses unsafeFreeze internally, but this wrapper is a safe interface to that function.
Overloaded mutable permutation interface
module Data.Permute.MPermute