Generator
class in package klyn.collections

    public class Generator<T>:

Generator

Materialized generator sequence.

`Generator<T>` is the collection type returned by language helpers that expose generator-style semantics, such as `Application.range`. The current runtime stores its values in the same native contiguous storage as `ArrayList<T>`, so iteration keeps the same fast indexed path while the API communicates that the sequence was produced by a generator.

@param <T> Element type.

@example ```klyn values = range(0, 5) for value in values: print(value)

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public native | Generator `Generator(start as T, stop as T, delta as T) throws ValueError` | Creates an immutable generated sequence from `start` to `stop`.