minIDBy

inline fun <ID : Any, T, R : Comparable<R>> Field<ID, T>.minIDBy(reductionType: ReductionType = ExcludingSelf, crossinline selector: (FieldEntry<ID, T>) -> R): ID?

Returns the ID of the entry that yields the smallest value according to the given selector.

Return

the ID of the entry with the lowest value, or null if none.

Parameters

reductionType

specifies whether to include the local entry in the comparison (default is ExcludingSelf).

selector

a function that maps each entry to a comparable value.