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

Function fromIterable

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

Source from the content-addressed store, hash-verified

795 * @since 4.0.0
796 */
797export const fromIterable = <A, L>(iterable: Iterable<A, L>): Channel<A, never, L> =>
798 fromIterator(() => iterable[Symbol.iterator]())
799
800/**
801 * 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