ap<B> method
Apply the function contained inside a
to change the value of type A
to
a value of type B
.
Implementation
@override
Task<B> ap<B>(covariant Task<B Function(A a)> a) =>
Task(() => a.run().then((f) => run().then((v) => f(v))));