View source
abstract State<X, A>((state:X) ‑> Pair<A, X>)
package interlude.ds
from X ‑> Pair<A, X> to X ‑> Pair<A, X>
A type of function that takes an initial state X, and produces an output
value A and a new state
See also:
A type of function that takes an initial state X, and produces an output
value A and a new state
See also:
staticfilterFMap<X, A, B>(s:State<X, A>, predicate:X ‑> Bool, fn:A ‑> State<X, B>):State<X, Option<B>>