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

Function fromIterable

packages/effect/src/Channel.ts:873–874  ·  view source on GitHub ↗
(iterable: Iterable<A, L>)

Source from the content-addressed store, hash-verified

871 * @since 4.0.0
872 */
873export const fromIterable = <A, L>(iterable: Iterable<A, L>): Channel<A, never, L> =>
874 fromIterator(() => iterable[Symbol.iterator]())
875
876/**
877 * Creates a `Channel` that emits arrays of elements from an iterable.

Callers

nothing calls this directly

Calls 1

fromIteratorFunction · 0.85

Tested by

no test coverage detected