sequenceArray<ENV, A> function

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

Implementation

ReaderIO<ENV, Iterable<A>> sequenceArray<ENV, A>(
  Iterable<ReaderIO<ENV, A>> arr,
) =>
    (env) => () => arr.map(
          (rio) => rio(env)(),
        );