running Fold Indexed
abstract fun <R> runningFoldIndexed(initial: R, operation: (index: Int, acc: R, PT) -> R): ListWrapper<R>
返回一个列表,其中包含对数组元素应用操作的累积结果,并提供元素索引.
参考 kotlin.collections.runningFoldIndexed
Return
包含累积结果的列表
Parameters
initial
初始值
operation
用于将累积值、元素索引和元素组合的函数