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

findLast

inline fun <T> MongoIterable<T>.findLast(crossinline predicate: (T) -> Boolean): T? (source)

Returns the last element matching the given predicate, or null if no such element was found.