Iterator

interface Iterator<out T>(source)

An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.

Since Kotlin

1.0
interface Iterator<out T>(source)

An iterator over a collection or another entity that can be represented as a sequence of elements. Allows to sequentially access the elements.

Since Kotlin

1.1

Functions

Link copied to clipboard
abstract operator fun hasNext(): Boolean

Returns true if the iteration has more elements.

Since Kotlin 1.0
abstract operator fun hasNext(): Boolean

Returns true if the iteration has more elements.

Since Kotlin 1.1
Link copied to clipboard
abstract operator fun next(): T

Returns the next element in the iteration.

Since Kotlin 1.0
abstract operator fun next(): T

Returns the next element in the iteration.

Since Kotlin 1.1

Inheritors

Link copied to clipboard
Link copied to clipboard