klyn.Application.range
method

    public static range<T extends AbstractInt>(start as T, stop as T, delta as T) as Generator<T>:

Description

Builds a Python-style integer range from `start` to `stop` (exclusive) using the provided step.

    for i in range(10, 0, -2):
    print(i)

Parameters

Parameter | Description
--- | ---
`start` | Inclusive lower bound.
`stop` | Exclusive upper bound.
`delta` | Step between successive values. Must not be `0`.

Returns

A generator containing each integer in the requested interval.

Throws

- ValueException if `delta == 0`.