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

Function fromIterable

packages/effect/src/TxChunk.ts:200–201  ·  view source on GitHub ↗
(iterable: Iterable<A>)

Source from the content-addressed store, hash-verified

198 * @since 4.0.0
199 */
200export const fromIterable = <A>(iterable: Iterable<A>): Effect.Effect<TxChunk<A>> =>
201 Effect.map(TxRef.make(Chunk.fromIterable(iterable)), (ref) => makeUnsafe(ref))
202
203/**
204 * Creates a new `TxChunk` with the specified TxRef.

Callers

nothing calls this directly

Calls 3

makeUnsafeFunction · 0.70
makeMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected