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

Function fromIterable

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

Source from the content-addressed store, hash-verified

347 * @since 2.0.0
348 */
349export const fromIterable = <A>(self: Iterable<A>): Chunk<A> =>
350 isChunk(self) ? self : fromArrayUnsafe(RA.fromIterable(self))
351
352const copyToArray = <A>(self: Chunk<A>, array: Array<any>, initial: number): void => {
353 switch (self.backing._tag) {

Callers 1

Chunk.tsFile · 0.70

Calls 2

isChunkFunction · 0.85
fromArrayUnsafeFunction · 0.85

Tested by

no test coverage detected