OfLong

interface OfLong : PrimitiveIterator<Long, (Long) -> Unit>

An Iterator specialized for long values.

Since

1.8

Functions

Link copied to clipboard
abstract fun forEachRemaining(action: (Long) -> Unit)

Performs the given action for each remaining element until all elements have been processed or the action throws an exception. Actions are performed in the order of iteration, if that order is specified. Exceptions thrown by the action are relayed to the caller.

open fun forEachRemaining(action: (Any?) -> Unit)

{@inheritDoc}

Link copied to clipboard
expect abstract operator fun hasNext(): Boolean
Link copied to clipboard
open operator override fun next(): Long

{@inheritDoc}

Link copied to clipboard
abstract fun nextLong(): Long

Returns the next long element in the iteration.

Link copied to clipboard
expect abstract fun remove()