kbox-jvm / ch.tutteli.kbox / kotlin.sequences.Sequence

Extensions for kotlin.sequences.Sequence

mapWithIndex

fun <T> Sequence<T>.mapWithIndex(): Sequence<WithIndex<T>>

Maps the values to WithIndex, containing the index next to the value itself.