map Result To
inline fun <V, E, U, C : MutableCollection<in U>> Iterable<V>.mapResultTo(destination: C, transform: (V) -> Result<U, E>): Result<C, E>
Content copied to clipboard
Applies the given transform function to each element of the original collection and appends the results to the given destination, returning early with the first Err if a transformation fails.