klyn.collections.Generator.next
method
public abstract next() as Boolean
Description

Advances to the next element without materializing the sequence.

Returns

true when current is available; false after completion or close.

Throws
  • IllegalStateException if this generator is already executing.
Example

while values.next(): print(values.current)