kmongo / kotlin.collections / com.mongodb.client.MongoIterable / withIndex

withIndex

fun <T> MongoIterable<T>.withIndex(): MongoIterable<IndexedValue<T>> (source)

Returns a lazy Iterable of IndexedValue for each element of the original collection.