runState

runState :: State s a -> s -> (a, s)
transformers Control.Monad.Trans.State.Lazy, transformers Control.Monad.Trans.State.Strict, mtl Control.Monad.State.Lazy, mtl Control.Monad.State.Strict
Unwrap a state monad computation as a function. (The inverse of state.)
runStateT :: StateT s a -> s -> m (a, s)
mtl Control.Monad.State.Lazy, mtl Control.Monad.State.Strict
runStateT :: StateT s m a -> s -> m (a, s)
transformers Control.Monad.Trans.State.Lazy, transformers Control.Monad.Trans.State.Strict