MCPcopy Index your code
hub / github.com/Effect-TS/effect / fromIterable

Function fromIterable

packages/effect/src/internal/schedule/intervals.ts:27–31  ·  view source on GitHub ↗
(intervals: Iterable<Interval.Interval>)

Source from the content-addressed store, hash-verified

25
26/** @internal */
27export const fromIterable = (intervals: Iterable<Interval.Interval>): Intervals.Intervals =>
28 Array.from(intervals).reduce(
29 (intervals, interval) => pipe(intervals, union(make(Chunk.of(interval)))),
30 empty
31 )
32
33/** @internal */
34export const union = dual<

Callers

nothing calls this directly

Calls 3

makeFunction · 0.70
ofMethod · 0.65
pipeFunction · 0.50

Tested by

no test coverage detected