IterableNumberExtension extension Null safety

Extensions that apply to iterables of numbers.

Specialized version of some extensions of IterableComparableExtension since doubles require special handling of double.nan.

on

Properties

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