foldIndexed

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

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