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

Function boundariesFromIterable

packages/effect/src/Metric.ts:3154–3155  ·  view source on GitHub ↗
(iterable: Iterable<number>)

Source from the content-addressed store, hash-verified

3152 * @since 4.0.0
3153 */
3154export const boundariesFromIterable = (iterable: Iterable<number>): ReadonlyArray<number> =>
3155 Arr.append(Arr.filter(new Set(iterable), (n) => n > 0), Number.POSITIVE_INFINITY)
3156
3157/**
3158 * Creates histogram bucket boundaries from a linear sequence and appends

Callers 2

linearBoundariesFunction · 0.85
exponentialBoundariesFunction · 0.85

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected