min

fun MongoIterable<Double>.min(): Double?
fun MongoIterable<Float>.min(): 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>.min(): T?

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