kbox-android / ch.tutteli.kbox / kotlin.collections.Iterable / mapWithIndex

mapWithIndex

fun <T> Iterable<T>.mapWithIndex(): List<WithIndex<T>>

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