iterator

fun <T> Sequence<T>.iterator(consumeAmount: Int): Iterator<T>

Return

this sequence, sliced after the first consumeAmount elements, as an iterator.

Parameters

consumeAmount

amount of elements to consume