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

indexOfLast

inline fun <T> MongoIterable<T>.indexOfLast(crossinline predicate: (T) -> Boolean): Int (source)

Returns index of the last element matching the given predicate, or -1 if the collection does not contain such element.