IterableComparableExtension<T extends Comparable> extension

Extensions for comparable Iterable

on

Properties

max → T
Returns the element with maximum value.
no setter
maxOrNull → T?
Returns the element with maximum value.
no setter
min → T
Returns the element with minimum value.
no setter
minOrNull → T?
Returns the element with minimum value.
no setter

Methods

maxOrNullWhere(bool test(T element)) → T?
Returns the element with maximum value of filtered collection by test predicate.
maxWhere(bool test(T element)) → T
Returns the element with maximum value of filtered collection by test predicate.
minOrNullWhere(bool test(T element)) → T?
Returns the element with minimum value of filtered collection by test predicate.
minWhere(bool test(T element)) → T
Returns the element with minimum value of filtered collection by test predicate.