sequenceArray<ENV, A> function

ReaderTask<ENV, Iterable<A>> sequenceArray<ENV, A>(
  1. Iterable<ReaderTask<ENV, A>> arr
)

Implementation

ReaderTask<ENV, Iterable<A>> sequenceArray<ENV, A>(
  Iterable<ReaderTask<ENV, A>> arr,
) =>
    (env) => () => Future.wait(
          arr.map(
            (rt) => rt(env)(),
          ),
        );