MutableIterator

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

An Iterator that can remove the most recently returned element.

Type Parameters

T

element type.

Functions

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

Checks whether another element is available without advancing the iterator.

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

Returns the next element and advances the iterator.

Link copied to clipboard
abstract fun remove()

Removes the element returned by the most recent successful next call.