ap<C> method

  1. @override
StateAsync<S, C> ap<C>(
  1. covariant StateAsync<S, C Function(A a)> a
)
override

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))));