map3<C, D, F> method

  1. @override
ReaderTask<E, F> map3<C, D, F>(
  1. covariant ReaderTask<E, C> mc,
  2. covariant ReaderTask<E, D> md,
  3. F f(
    1. A a,
    2. C c,
    3. D d
    )
)
override

Change type of this ReaderTask based on its value of type A, the value of type C of a second ReaderTask, and the value of type D of a third ReaderTask.

Implementation

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