withIndex

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

Returns a MongoIterable of IndexedValue (the index is computed at iteration time).