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

Function range

packages/effect/src/Array.ts:123–124  ·  view source on GitHub ↗
(start: number, end: number)

Source from the content-addressed store, hash-verified

121 * @since 2.0.0
122 */
123export const range = (start: number, end: number): NonEmptyArray<number> =>
124 start <= end ? makeBy(end - start + 1, (i) => start + i) : [start]
125
126/**
127 * Return a `NonEmptyArray` containing a value repeated the specified number of times.

Callers

nothing calls this directly

Calls 1

makeByFunction · 0.85

Tested by

no test coverage detected