advanceSubStreams

open override fun advanceSubStreams(n: Long)(source)

Advances the stream by n sub-streams, leaving it at the start of the sub-stream that n successive calls to advanceToNextSubStream would reach. A value of 0 leaves the stream unchanged. The default implementation advances one sub-stream at a time; generators with jump-ahead support should override with an O(log n) skip-ahead.

Parameters

n

the number of sub-streams to advance; must be >= 0