fold

inline fun <R> fold(initial: R, operation: (R, T) -> R): R

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