ap<C> method
Apply the function contained inside a
to change the value of type A
to
a value of type C
.
Implementation
@override
StateAsync<S, C> ap<C>(covariant StateAsync<S, C Function(A a)> a) =>
a.flatMap((f) => flatMap((v) => pure(f(v))));