kbox-android / ch.tutteli.kbox / kotlin.sequences.Sequence / mapWithIndex

mapWithIndex

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

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