max<T extends Comparable<T> > function
T
max<T extends Comparable<T> >(
- T a,
- T b
Returns the larger of two Comparables.
Implementation
T max<T extends Comparable<T>>(T a, T b) => a.compareTo(b) < 0 ? b : a;