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