OperatorsExtension<E> extension

on

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 custom comparator 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 custom comparator is provided.