max

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

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

If any of elements is NaN returns NaN.


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

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