MODULE State
data
constructor(readonly run: (s: S) => [A, S]) {}
<B>(fab: State<S, (a: A) => B>): State<S, B>
<B, C>(this: State<S, (b: B) => C>, fb: State<S, B>): State<S, C>
<B>(f: (a: A) => State<S, B>): State<S, B>
(s: S): A
(s: S): S
<B>(f: (a: A) => B): State<S, B>
instance
Monad2<URI>
function
<S>(): State<S, S>
function
<S, A>(f: (s: S) => A): State<S, A>
function
<S>(f: (s: S) => S): State<S, undefined>
function
<S>(s: S): State<S, undefined>