MutableIterator

interface MutableIterator<out T> : Iterator<T> (source)

An iterator over a mutable collection. Provides the ability to remove elements while iterating.

Since Kotlin

1.0
interface MutableIterator<out T> : Iterator<T> (source)

An iterator over a mutable collection. Provides the ability to remove elements while iterating.

Since Kotlin

1.1

See also

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
Link copied to clipboard
abstract fun remove()

Removes from the underlying collection the last element returned by this iterator.

Since Kotlin 1.0
abstract fun remove()

Removes from the underlying collection the last element returned by this iterator.

Since Kotlin 1.1

Inheritors

Link copied to clipboard