collect
inline fun <T> Collection<KotlinResult<T>>.collect(reduce: (List<Throwable>) -> Throwable): KotlinResult<List<T>>
Collects a Collection of KotlinResult values into a single result.
All success: returns Result.success wrapping a List of each encapsulated value.
Any failure: returns Result.failure with the Throwable produced by reduce, applied to all failure exceptions.