OperatorsIterableExtension<E> extension
- on
-
- Iterable<
E>
- Iterable<
Methods
-
largest(
int count, {Comparator< E> ? comparator}) → List<E> -
Available on Iterable<
Returns a list of theE> , provided by the OperatorsIterableExtension extensioncount
largest elements of this Iterable. The elements need to be Comparable, unless a customcomparator
is provided. -
max(
{Comparator< E> ? comparator, E orElse()?}) → E -
Available on Iterable<
Returns the maximum of this Iterable. The elements need to be Comparable, unless a customE> , provided by the OperatorsIterableExtension extensioncomparator
is provided. -
min(
{Comparator< E> ? comparator, E orElse()?}) → E -
Available on Iterable<
Returns the minimum of this Iterable. The elements need to be Comparable, unless a customE> , provided by the OperatorsIterableExtension extensioncomparator
is provided. -
minMax(
{Comparator< E> ? comparator, ({E max, E min}) orElse()?}) → ({E max, E min}) -
Available on Iterable<
Returns the minimum and maximum of this Iterable at once. The elements need to be Comparable, unless a customE> , provided by the OperatorsIterableExtension extensioncomparator
is provided. -
smallest(
int count, {Comparator< E> ? comparator}) → List<E> -
Available on Iterable<
Returns a list of theE> , provided by the OperatorsIterableExtension extensioncount
smallest elements of this Iterable. The elements need to be Comparable, unless a customcomparator
is provided.