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

any

fun <T> MongoIterable<T>.any(): Boolean (source)

Returns true if collection has at least one element.

//Unresolved: samples.collections.Collections.Aggregates.any
inline fun <T> MongoIterable<T>.any(crossinline predicate: (T) -> Boolean): Boolean (source)

Returns true if at least one element matches the given predicate.

//Unresolved: samples.collections.Collections.Aggregates.anyWithPredicate