ReaderTask<E, A>.flatten constructor

ReaderTask<E, A>.flatten(
  1. ReaderTask<E, ReaderTask<E, A>> task
)

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

Implementation

factory ReaderTask.flatten(ReaderTask<E, ReaderTask<E, A>> task) =>
    task.flatMap(identity);