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

max

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

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? (source)

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