put method

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

Implementation

State<S, Unit> put(S newS) => new State((_) => new Tuple2(unit, newS));