AbstractIterator

abstract class AbstractIterator<T> : Iterator<T>

A base class to simplify implementing iterators so that implementations only have to implement computeNext to implement the iterator, calling done when the iteration is complete.

Constructors

AbstractIterator
Link copied to clipboard
fun AbstractIterator()

Functions

hasNext
Link copied to clipboard
open operator override fun hasNext(): Boolean
next
Link copied to clipboard
open operator override fun next(): T