kotlin.collections.foldIndexed

foldIndexed

inline fun <T, R> Iterable<T>.foldIndexed(
    initial: R, 
    operation: (index: Int, acc: R, T) -> R
): R

Accumulates value starting with initial value and applying 登录查看完整内容