indexOf

fun <T> MongoIterable<T>.indexOf(element: T): Int

Returns first index of element, or -1 if the collection does not contain element.