fx-flow v0.7.0 / pipe/lazy / range
Function: range()
range(length)
range(
length
):IterableIterator
<number
>
Retures IterableIterator of numbers progressing from start
to end
(not included).
Parameters
• length: number
Returns
IterableIterator
<number
>
Example
typescript
for (const v of range(4)) {
console.log(v) // 0, 1, 2, 3
}
Source
packages/core/src/pipe/lazy/range.ts:13
range(start, end)
range(
start
,end
):IterableIterator
<number
>
Parameters
• start: number
• end: number
Returns
IterableIterator
<number
>
Source
packages/core/src/pipe/lazy/range.ts:15
range(start, end, step)
range(
start
,end
,step
):IterableIterator
<number
>
Parameters
• start: number
• end: number
• step: number
Returns
IterableIterator
<number
>