Finds the first n
elements with the largest values.
Finds the first n
elements with the largest values.
the number of elements return.
true to return the first n
distinct elements, otherwise false to allow duplicate elements.
the implicit comparison method for type A.
the first n
elements of this traversable or iterator with the largest values.
Finds the first n
elements with the largest values measured by function f.
Finds the first n
elements with the largest values measured by function f.
the result type of the function f.
the number of elements return.
the measuring function.
true to return the first n
distinct elements, otherwise false to allow duplicate elements.
the implicit comparison method for type B.
the first n
elements of this traversable or iterator with the largest values measured by function f.