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

indexOf

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

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