minOrNull

fun MongoIterable<Double>.minOrNull(): Double?
fun MongoIterable<Float>.minOrNull(): Float?

Returns the smallest element or null if there are no elements.

If any of elements is NaN returns NaN.


fun <T : Comparable<T>> MongoIterable<T>.minOrNull(): T?

Returns the smallest element or null if there are no elements.