State

object State extends StateFunctions
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[S, A](f: S => (S, A)): State[S, A]
def hoist[F[_], G[_], S](nat: NaturalTransformation[F, G]): NaturalTransformation[[α] =>> State[S, F[α]], [α] =>> State[S, G[α]]]
def united[S1, S2, A](s: State[S1, State[S2, A]]): State[(S1, S2), A]

Inherited methods

def constantIndexedState[S1, S2, A](a: A, s: => S2): IndexedState[S1, S2, A]
Inherited from
IndexedStateFunctions
def constantState[S, A](a: A, s: => S): State[S, A]
Inherited from
StateFunctions
def get[S]: State[S, S]
Inherited from
StateFunctions
def gets[S, T](f: S => T): State[S, T]
Inherited from
StateFunctions
def iModify[S1, S2](f: S1 => S2): IndexedState[S1, S2, Unit]
Inherited from
IndexedStateFunctions
def iPut[S1, S2](s: S2): IndexedState[S1, S2, Unit]
Inherited from
IndexedStateFunctions
def init[S]: State[S, S]
Inherited from
StateFunctions
def modify[S](f: S => S): State[S, Unit]
Inherited from
StateFunctions
def put[S](s: S): State[S, Unit]
Inherited from
StateFunctions
def state[S, A](a: A): State[S, A]
Inherited from
StateFunctions