IterableIntegerExtension extension

Extension on iterables of integers.

Specialized version of some extensions of IterableNumberExtension or IterableComparableExtension since integers are only Comparable<num>.

on

Properties

average double
The arithmetic mean of the elements of a non-empty iterable.
no setter
max int
A maximal element of the iterable.
no setter
maxOrNull int?
A maximal element of the iterable, or null if the iterable is empty.
no setter
min int
A minimal element of the iterable.
no setter
minOrNull int?
A minimal element of the iterable, or null it the iterable is empty.
no setter
sum int
The sum of the elements.
no setter