State s a is an abstract data type that resembles a stateful computation with State s and result a, i.e. functions of type s -> (a, s) where the State is immutable.
make an instance of State using an appropriate function, for example
state random
Alias for State.run
StateT s m a
A stateful computation that transforms an inner Monad m
access field run
inherited from Applicative.*>
inherited from Applicative.<*
inherited from Monad.<*>
monadic bind for the State monad
inherited from Monad.fmap
inherited from Monad.join
lift a value to the State monad
inherited from Applicative.*>
inherited from Applicative.<*
inherited from Monad.<*>
inherited from Monad.fmap
inherited from Monad.join