forEachRemaining

open fun forEachRemaining(action: T_CONS)

Primitive-specific version of forEachRemaining.

Default implementation repeatedly invokes the primitive tryAdvance.

Parameters

action

The primitive action.


open override fun forEachRemaining(action: (T) -> Unit)

Generic forEachRemaining implementation for primitive spliterators. Default behavior adapts the generic consumer to the primitive one, potentially causing boxing.