LargestComparator<T> extension

on

Methods

largest(Iterable<T> iterable, int k) List<T>

Available on Comparator<T>, provided by the LargestComparator extension

Returns a list of the k largest elements of the given iterable according to this ordering, in order from largest to smallest.