bimap<L1, L2, R1, R2> function

TaskEither<L2, R2> Function(TaskEither<L1, R1> taskEither) bimap<L1, L2, R1, R2>({
  1. required L2 left(
    1. L1
    ),
  2. required R2 right(
    1. R1
    ),
})

Implementation

TaskEither<L2, R2> Function(
  TaskEither<L1, R1> taskEither,
) bimap<L1, L2, R1, R2>({
  required L2 Function(L1) left,
  required R2 Function(R1) right,
}) =>
    (taskEither) => () => taskEither().then(
          E.bimap(
            left: left,
            right: right,
          ),
        );