evaluate<S> function

A Function<A>(State<S, A> s) evaluate<S>(
  1. S s
)

Run a computation in the State monad, discarding the final state

Implementation

A Function<A>(State<S, A> s) evaluate<S>(S s) => <A>(fa) => fa(s).first;