IO<A>.flatten constructor

IO<A>.flatten(
  1. IO<IO<A>> io
)

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

Implementation

factory IO.flatten(IO<IO<A>> io) => io.flatMap(identity);