min Value By
inline fun <ID : Any, T, R : Comparable<R>> Field<ID, T>.minValueBy(reductionType: ReductionType = ExcludingSelf, crossinline selector: (FieldEntry<ID, T>) -> R): T?
Returns the value of the entry that yields the smallest value according to the given selector.
Return
the value of the entry with the lowest score, or null if none.
Parameters
reduction Type
specifies whether to include the local entry in the comparison (default is ExcludingSelf).
selector
a function that maps each entry to a comparable value.