Apply the function contained inside a to change the value of type A to a value of type B.
a
A
B
@override IO<B> ap<B>(covariant IO<B Function(A a)> a) => a.flatMap((f) => flatMap((v) => pure(f(v))));