execute<S> function

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

Run a computation in the State monad, discarding the result

Implementation

S Function<A>(State<S, A> s) execute<S>(S s) => <A>(fa) => fa(s).second;