public static range<T extends AbstractInt>(stop as T) as Generator<T>
Creates a lazy, single-pass integer range from 0 to stop (exclusive).
for i in range(5):
print(i)| Parameter | Description |
|---|---|
stop | Exclusive upper bound. |
A generator containing 0, 1, ..., stop - 1.