combine

fun <V, E> combine(vararg results: Result<V, E>): Result<List<V>, E>

Combines a vararg of Results into a single Result (holding a List).


fun <V, E> Iterable<Result<V, E>>.combine(): Result<List<V>, E>

Combines an Iterable of Results into a single Result (holding a List).