Modify the state with the given transformer function
State<S, Unit> modify<S>(S Function(S s) f) => State((s) => tuple2(unit, f(s)));