MCPcopy
hub / github.com/Effect-TS/effect / fromIterable

Function fromIterable

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

Source from the content-addressed store, hash-verified

248 * @since 2.0.0
249 */
250export const fromIterable = <A>(self: Iterable<A>): Chunk<A> =>
251 isChunk(self) ? self : unsafeFromArray(RA.fromIterable(self))
252
253const copyToArray = <A>(self: Chunk<A>, array: Array<any>, initial: number): void => {
254 switch (self.backing._tag) {

Callers 1

Chunk.tsFile · 0.70

Calls 2

isChunkFunction · 0.85
unsafeFromArrayFunction · 0.85

Tested by

no test coverage detected