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 extensioncountlargest elements of this Iterable. The elements need to be Comparable, unless a customcomparatoris 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 extensioncomparatoris 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 extensioncomparatoris 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 extensioncomparatoris provided. -
smallest(
int count, {Comparator< E> ? comparator}) → List<E> -
Available on Iterable<
Returns a list of theE> , provided by the OperatorsIterableExtension extensioncountsmallest elements of this Iterable. The elements need to be Comparable, unless a customcomparatoris provided.