mapIndexedTo
inline fun <T, R, C : MutableCollection<in R>> Iterable<T>.mapIndexedTo(
destination: C,
transform: (index: Int, T) -> R
): C
Applies the given transform function to each element and its index in the original collection and appends the results to the given 登录查看完整内容