kmongo / kotlin.collections / maxBy

maxBy

inline fun <T, R : Comparable<R>> MongoIterable<T>.maxBy(crossinline selector: (T) -> R): T?