match<L, R, A> function

Task<A> Function(TaskEither<L, R> taskEither) match<L, R, A>({
  1. required A left(
    1. L
    ),
  2. required A right(
    1. R
    ),
})

Implementation

Task<A> Function(
  TaskEither<L, R> taskEither,
) match<L, R, A>({
  required A Function(L) left,
  required A Function(R) right,
}) =>
    (taskEither) => () => taskEither().then(
          E.match(
            left: left,
            right: right,
          ),
        );