none

fun <T> MongoIterable<T>.none(): Boolean

Returns true if the collection has no elements.

Samples

samples.collections.Collections.Aggregates.none
inline fun <T> MongoIterable<T>.none(crossinline predicate: (T) -> Boolean): Boolean

Returns true if no elements match the given predicate.

Samples

samples.collections.Collections.Aggregates.noneWithPredicate