fun <T> MongoCursor<T>.withIndex(): MongoCursor<IndexedValue<T>>
(source)
Returns an Iterator wrapping each value produced by this Iterator with the IndexedValue, containing value and it's index.
//Unresolved: samples.collections.Iterators.withIndexIterator