ap<C> method

  1. @override
ReaderTaskEither<E, L, C> ap<C>(
  1. covariant ReaderTaskEither<E, L, C Function(R r)> a
)
override

Apply the function contained inside a to change the value on the Right from type R to a value of type C.

Implementation

@override
ReaderTaskEither<E, L, C> ap<C>(
  covariant ReaderTaskEither<E, L, C Function(R r)> a,
) =>
    a.flatMap(
      (f) => flatMap(
        (v) => pure(f(v)),
      ),
    );