klyn.Application.range
method
public static range<T extends AbstractInt>(stop as T) as Generator<T>
Description

Creates a lazy, single-pass integer range from 0 to stop (exclusive).

for i in range(5):
    print(i)
Parameters
ParameterDescription
stopExclusive upper bound.
Returns

A generator containing 0, 1, ..., stop - 1.