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

Function range

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

Source from the content-addressed store, hash-verified

240 * @since 2.0.0
241 */
242export const range = (start: number, end: number): NonEmptyArray<number> =>
243 start <= end ? makeBy(end - start + 1, (i) => start + i) : [start]
244
245/**
246 * Creates a `NonEmptyArray` containing a value repeated `n` times.

Callers

nothing calls this directly

Calls 1

makeByFunction · 0.85

Tested by

no test coverage detected