MCPcopy
hub / github.com/Effect-TS/effect / range

Function range

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

Source from the content-addressed store, hash-verified

1325 * @since 2.0.0
1326 */
1327export const range = (start: number, end: number): NonEmptyChunk<number> =>
1328 start <= end ? makeBy(end - start + 1, (i) => start + i) : of(start)
1329
1330// -------------------------------------------------------------------------------------
1331// re-exports from ReadonlyArray

Callers

nothing calls this directly

Calls 2

makeByFunction · 0.85
ofFunction · 0.70

Tested by

no test coverage detected