Start of sequence (or end if only one argument).
Optionalend: numberEnd of sequence (exclusive).
Optionalstep: numberIncrement (default: 1 or 1n).
A Generator yielding the sequence.
Creates a lazy generator yielding a sequence of numbers or bigints (like Python's range()).
range(end) — [0, end)range(start, end) — [start, end)range(start, end, step) — [start, end) with custom stepDefault step is 1 (or 1n). For descending ranges, provide a negative step.
Start of sequence (or end if only one argument).
Optionalend: bigintEnd of sequence (exclusive).
Optionalstep: bigintIncrement (default: 1 or 1n).
A Generator yielding the sequence.
Creates a lazy generator yielding a sequence of numbers or bigints (like Python's
range()).range(end)—[0, end)range(start, end)—[start, end)range(start, end, step)—[start, end)with custom stepDefault step is
1(or1n). For descending ranges, provide a negative step.