SmallestComparator<T> extension

on

Methods

smallest(Iterable<T> iterable, int k) List<T>
Returns a list of the k smallest elements from the given iterable according to this ordering, in order from smallest to largest.