foldIndexed

inline fun <R> foldIndexed(initial: R, operation: (index: Int, acc: R, element: Double) -> R): R(source)

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