match<L, R, A> function
Task<A> Function(TaskEither<L, R> taskEither)
match<L, R, A>({
- required A left(
- L
- required A right(
- 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,
),
);