map2<C, D> method

  1. @override
ReaderTask<E, D> map2<C, D>(
  1. covariant ReaderTask<E, C> mc,
  2. D f(
    1. A a,
    2. C c
    )
)
override

Change type of this ReaderTask based on its value of type A and the value of type C of another ReaderTask.

Implementation

@override
ReaderTask<E, D> map2<C, D>(
        covariant ReaderTask<E, C> mc, D Function(A a, C c) f) =>
    flatMap(
      (a) => mc.map(
        (c) => f(a, c),
      ),
    );