minBy<R extends Comparable<R> > method
T
minBy<R extends Comparable<R> >(
- R by(
- T item
- T? ifNull
Implementation
T minBy<R extends Comparable<R>>(R by(T item), [T? ifNull]) {
return minByOrNull(by, ifNull) ??
(throw IndexError(0, this, "minBy while empty"));
}