Set a new state and return nothing (Unit).
Unit
State<S, Unit> put(S state) => State((_) => (unit, state));