typealias State<S, A> =
<ForId, S, A>
State<S, A> is a stateful computation that yields a value of type
S - the state we are performing computation upon.
A - current value of computation.
fun <S, A> State(run: (S) -> Tuple2<S, A>):
Constructor for State. State<S, A> is an alias for IndexedStateT<ForId, S, S, A>
Alias for StateId to make working with
StateT<ForId, S, A> more elegant.
Do you like Arrow?✖