fold

open override fun <R> fold(initial: R, operation: (R, CoroutineContext.Element) -> R): R(source)

Accumulates entries of this context starting with initial value and applying operation from left to right to current accumulator value and each element of this context.

Since Kotlin

1.3