map Result Indexed
inline fun <V, E, U> Iterable<V>.mapResultIndexed(transform: (index: Int, V) -> Result<U, E>): Result<List<U>, E>
Content copied to clipboard
Returns a Result, E> containing the results of applying the given transform function to each element and its index in the original collection, returning early with the first Err if a transformation fails.