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

Function fromIterable

packages/effect/src/Chunk.ts:375–375  ·  view source on GitHub ↗
(self: Iterable<A>)

Source from the content-addressed store, hash-verified

373 * @since 2.0.0
374 */
375export const fromIterable = <A>(self: Iterable<A>): Chunk<A> => isChunk(self) ? self : fromArrayUnsafe(Array.from(self))
376
377const copyToArray = <A>(self: Chunk<A>, array: Array<any>, initial: number): void => {
378 switch (self.backing._tag) {

Callers

nothing calls this directly

Calls 3

isChunkFunction · 0.85
fromArrayUnsafeFunction · 0.85
fromMethod · 0.80

Tested by

no test coverage detected