onEachIndexed

abstract fun onEachIndexed(action: (index: Int, T) -> Unit): ArrayWrapper<out T>

对此数组的每个元素及其索引执行给定的 action

参考 kotlin.collections.onEachIndexed

Return

此数组。

Parameters

action

要对每个元素及其索引执行的操作。