DHUIterableDoubleExtensionsNS extension

Extension on nullable Iterable<double?> providing a total sum calculation.

This extension adds a total getter that computes the sum of all non-null double values in the iterable. If the iterable is null or empty, it returns 0. Null elements within the iterable are treated as 0.0 in the sum.

on

Properties

total double

Available on Iterable<double?>?, provided by the DHUIterableDoubleExtensionsNS extension

Calculates the total sum of the doubles in the iterable.
no setter