The end number of the sequence (exclusive). Must be a safe integer.
A Generator object that yields safe integers in the specified range.
Generates a sequence of numbers within a specified range using a generator function.
This function creates a generator that yields numbers from start
(inclusive) to end
(exclusive) with the specified step
increment/decrement. The function implements the JavaScript iterator
protocol, making it compatible with for-of loops, spread operator,
Array.from(), and other iterator consumers.
The function has two overloaded signatures:
Generator Behavior:
void
when iteration completesStep Parameter Behavior:
Edge Cases:
The starting number of the sequence (inclusive). Must be a safe integer.
The end number of the sequence (exclusive). Must be a safe integer.
Optional
step: WithSmallInt<PositiveSafeInt, 512>The increment or decrement value. Defaults to 1. Must be non-zero safe integer.
A Generator object that yields safe integers in the specified range.
Generates a sequence of numbers within a specified range using a generator function.
This function creates a generator that yields numbers from start
(inclusive) to end
(exclusive) with the specified step
increment/decrement. The function implements the JavaScript iterator
protocol, making it compatible with for-of loops, spread operator,
Array.from(), and other iterator consumers.
The function has two overloaded signatures:
Generator Behavior:
void
when iteration completesStep Parameter Behavior:
Edge Cases:
The starting number of the sequence (inclusive). Must be a safe integer.
The end number of the sequence (exclusive). Must be a safe integer.
Optional
step: WithSmallInt<NonZeroSafeInt, 512>The increment or decrement value. Defaults to 1. Must be non-zero safe integer.
A Generator object that yields safe integers in the specified range.
Generates a sequence of numbers within a specified range using a generator function.
This function creates a generator that yields numbers from
start
(inclusive) toend
(exclusive) with the specifiedstep
increment/decrement. The function implements the JavaScript iterator protocol, making it compatible with for-of loops, spread operator, Array.from(), and other iterator consumers.The function has two overloaded signatures:
Generator Behavior:
void
when iteration completesStep Parameter Behavior:
Edge Cases: