foldIndexed

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

Fold given buffer according to indexed operation