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

Function fromIterable

packages/effect/src/internal/metric/boundaries.ts:44–51  ·  view source on GitHub ↗
(iterable: Iterable<number>)

Source from the content-addressed store, hash-verified

42
43/** @internal */
44export const fromIterable = (iterable: Iterable<number>): MetricBoundaries.MetricBoundaries => {
45 const values = pipe(
46 iterable,
47 Arr.appendAll(Chunk.of(Number.POSITIVE_INFINITY)),
48 Arr.dedupe
49 )
50 return new MetricBoundariesImpl(values)
51}
52
53/** @internal */
54export const linear = (options: {

Callers

nothing calls this directly

Calls 2

pipeFunction · 0.70
ofMethod · 0.65

Tested by

no test coverage detected