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

Builds a Python-style integer range from 0 to stop (exclusive).

for i in range(5):
print(i)
Parameters
  • stop Exclusive upper bound.
Returns

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