kbox-android / ch.tutteli.kbox / kotlin.Array / mapWithIndex

mapWithIndex

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

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