foldRight

inline fun <T, R, E> List<T>.foldRight(initial: R, operation: (T, R) -> Result<R, E>): Result<R, E>

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