mapIndexedAsync

suspend fun <T, R> Iterable<T>.mapIndexedAsync(mapper: suspend (Int, T) -> R): List<R>

Asynchronously maps the elements of the iterable with their index using the specified suspending function mapper.

Return

A list containing the results of applying the mapper function to each indexed element.

Parameters

mapper

The suspending function to apply to each indexed element.