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