tryAdvance

abstract fun tryAdvance(action: T_CONS): Boolean

Primitive-specific version of tryAdvance.

Return

false if no remaining elements existed, else true.

Parameters

action

The primitive action.


open override fun tryAdvance(action: (T) -> Unit): Boolean

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