function mapIndexed
source · line 15public
public fun <T, R> Iterable<T>.mapIndexed(transform: (Long, T) -> R): List<R>
Extension receiver: Iterable<T>
Transforms each element with its zero-based Long index into a new list.
parameter receiver
source · line 15public
Iterable<T>
parameter transform
source · line 15public
transform: (Long, T) -> R
type parameter T
source · line 15public
T
type parameter R
source · line 15public
R