maximumBy package:foldable1-classes-compat

The largest element of a non-empty structure with respect to the given comparison function.