TaskEither<L, R>.flatten constructor

TaskEither<L, R>.flatten(
  1. TaskEither<L, TaskEither<L, R>> taskEither
)

Flat a TaskEither contained inside another TaskEither to be a single TaskEither.

Implementation

factory TaskEither.flatten(TaskEither<L, TaskEither<L, R>> taskEither) =>
    taskEither.flatMap(identity);