MCPcopy Create free account
hub / github.com/Effect-TS/effect / fromIterableArray

Function fromIterableArray

packages/effect/src/Channel.ts:816–819  ·  view source on GitHub ↗
(
  iterable: Iterable<A, L>,
  chunkSize = DefaultChunkSize
)

Source from the content-addressed store, hash-verified

814 * @since 4.0.0
815 */
816export const fromIterableArray = <A, L>(
817 iterable: Iterable<A, L>,
818 chunkSize = DefaultChunkSize
819): Channel<Arr.NonEmptyReadonlyArray<A>, never, L> => fromIteratorArray(() => iterable[Symbol.iterator](), chunkSize)
820
821/**
822 * Creates a `Channel` that emits a single value and then ends.

Callers

nothing calls this directly

Calls 1

fromIteratorArrayFunction · 0.85

Tested by

no test coverage detected