sdk
Toggle table of contents
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
sdk
sdk
/
com.m8test.script.core.api.wrapper
/
PrimitiveArrayWrapper
/
onEachIndexed
on
Each
Indexed
abstract
fun
onEachIndexed
(
action
:
(
index
:
Int
,
PT
)
->
Unit
)
:
PrimitiveArrayWrapper
<
PT
,
AT
>
对数组的每个元素执行给定的操作,并提供元素索引,并返回数组本身.
参考
kotlin.collections.onEachIndexed
Return
数组本身
Parameters
action
要对每个元素执行的操作,包含元素索引