sdk
Toggle table of contents
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
sdk
sdk
/
com.m8test.script.core.api.wrapper
/
PrimitiveArrayWrapper
/
foldIndexed
fold
Indexed
abstract
fun
<
R
>
foldIndexed
(
initial
:
R
,
operation
:
(
index
:
Int
,
acc
:
R
,
PT
)
->
R
)
:
R
通过对每个元素应用操作来累积值,并提供元素索引.
参考
kotlin.collections.foldIndexed
Return
最终累积值
Parameters
initial
初始值
operation
用于将累积值、元素索引和元素组合的函数