next

fun next(): T(source)

Consumes the next value or applies the exhaustion policy.

Return

The next value, the repeated last value, or the fallback.

Throws

when exhausted without a usable replacement.