runningFoldIndexed

abstract fun <R> runningFoldIndexed(initial: R, operation: (index: Int, acc: R, Char) -> R): ListWrapper<R>

返回一个 ListWrapper,其中包含通过将给定操作顺序应用于初始值和 CharSequenceWrapper 的每个元素(以及其索引)而获得的中间结果。

参考 kotlin.sequences.runningFoldIndexed

Return

一个新的 ListWrapper,其中包含中间结果。

Parameters

initial

初始累积值。

operation

用于将元素、其索引和累积结果组合的操作函数。