foldIndexed

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

Accumulates values, starting with initial, and applying operation to each element in the MutableVector in order.