running Fold Indexed
abstract fun <R> runningFoldIndexed(initial: R, operation: (index: Int, acc: R, T) -> R): ListWrapper<R>
对此数组的每个元素及其索引依次应用给定的 operation 函数,并返回一个包含所有中间结果的新列表。
参考 kotlin.collections.runningFoldIndexed
Return
一个包含所有中间结果的新列表。
Parameters
R
结果元素类型。
initial
初始累积值。
operation
用于累积值的函数。