kmongo / kotlin.collections / mapIndexedTo

mapIndexedTo

inline fun <T, R, C : MutableCollection<in R>> MongoIterable<T>.mapIndexedTo(destination: C, crossinline transform: (index: Int, T) -> R): C