Change the value inside State<S, A> from type A to type C using f.
State<S, A>
A
C
f
@override State<S, C> map<C>(C Function(A a) f) => ap(pure(f));