OperatorsExtension<E> extension
- on
-
- Iterable<
E>
- Iterable<
Methods
-
largest(
int count, {Comparator< E> ? comparator}) → List<E> -
Returns a list of the
count
largest elements of this Iterable. The elements need to be Comparable, unless a customcomparator
is provided. -
max(
{Comparator< E> ? comparator, E orElse()?}) → E -
Returns the maximum of this Iterable. The elements need to be
Comparable, unless a custom
comparator
is provided. -
min(
{Comparator< E> ? comparator, E orElse()?}) → E -
Returns the minimum of this Iterable. The elements need to be
Comparable, unless a custom
comparator
is provided. -
smallest(
int count, {Comparator< E> ? comparator}) → List<E> -
Returns a list of the
count
smallest elements of this Iterable. The elements need to be Comparable, unless a customcomparator
is provided.