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

Function range

packages/effect/src/Chunk.ts:2446–2447  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

2444 * @since 2.0.0
2445 */
2446export const range = (start: number, end: number): NonEmptyChunk<number> =>
2447 start <= end ? makeBy(end - start + 1, (i) => start + i) : of(start)
2448
2449// -------------------------------------------------------------------------------------
2450// re-exports from ReadonlyArray

Callers

nothing calls this directly

Calls 2

makeByFunction · 0.85
ofFunction · 0.70

Tested by

no test coverage detected