fold Each
inline fun <In, Out> Iterable<KotlinResult<In>>.foldEach(success: (In) -> Out, failure: (Throwable) -> Out): List<Out>
Serial KotlinResult.fold of multiple KotlinResults. Each result is processed in a separate coroutine, and the results are collected as a List of Out.
Receiver
An Iterable of KotlinResult to process.
Return
A list of KotlinResult containing the results of each block.
fun <In, Out> Sequence<KotlinResult<In>>.foldEach(success: (In) -> Out, failure: (Throwable) -> Out): Sequence<Out>
Serial KotlinResult.fold of multiple KotlinResults. Each result is processed in a separate coroutine, and the results are collected as a Sequence of Out.
Receiver
A Sequence of KotlinResult to process.
Return
A sequence of results containing the results of each block.