put<S> function

State<S, Unit> put<S>(
  1. S s
)

Set the state

Implementation

State<S, Unit> put<S>(S s) => State((_) => tuple2(unit, s));