mapResultIndexedTo

inline fun <V, E, U, C : MutableCollection<in U>> Iterable<V>.mapResultIndexedTo(destination: C, transform: (index: Int, V) -> Result<U, E>): Result<C, E>

Applies the given transform function to each element and its index in the original collection and appends the results to the given destination, returning early with the first Err if a transformation fails.