foldRightIndexed

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

将初始值与 CharSequenceWrapper 中的所有元素聚合,使用提供的操作函数依次将每个元素与累积结果组合,从最后一个元素开始,并提供元素的索引。

参考 kotlin.text.foldRightIndexed

Return

最终累积结果。

Parameters

initial

初始累积值。

operation

用于将元素与累积结果组合的操作函数。