MinMaxComparator<T> extension
Methods
-
max(T a, T b)
→ T
-
Returns the maximum of the two arguments
a
and b
.
-
maxOf(Iterable<T> iterable, {T orElse()?})
→ T
-
Returns the maximum of the provided
iterable
.
-
min(T a, T b)
→ T
-
Returns the minimum of the two arguments
a
and b
.
-
minMaxOf(Iterable<T> iterable, {({T max, T min}) orElse()?})
→ ({T max, T min})
-
Returns a tuple with the minimum and maximum of the provided
iterable
.
-
minOf(Iterable<T> iterable, {T orElse()?})
→ T
-
Returns the maximum of the provided
iterable
.