IterableIntegerExtension extension Null safety
Extension on iterables of integers.
Specialized version of some extensions of IterableNumberExtension or
IterableComparableExtension since integers are only Comparable<num>
.
Properties
- average → double
-
The arithmetic mean of the elements of a non-empty iterable.
read-only
- max → int
-
A maximal element of the iterable.
read-only
- maxOrNull → int?
-
A maximal element of the iterable, or
null
if the iterable is empty.read-only - min → int
-
A minimal element of the iterable.
read-only
- minOrNull → int?
-
A minimal element of the iterable, or
null
it the iterable is empty.read-only - sum → int
-
The sum of the elements.
read-only