runningReduceIndexed

abstract fun runningReduceIndexed(operation: (index: Int, acc: PT, PT) -> PT): ListWrapper<PT>

返回一个列表,其中包含对数组元素应用操作的累积结果,并提供元素索引.

参考 kotlin.collections.runningReduceIndexed

Return

包含累积结果的列表

Parameters

operation

用于将累积值、元素索引和元素组合的函数