sum property
The sum of the elements.
The sum is zero if the iterable is empty.
Implementation
double get sum {
var result = 0.0;
for (var value in this) {
result += value;
}
return result;
}
The sum of the elements.
The sum is zero if the iterable is empty.
double get sum {
var result = 0.0;
for (var value in this) {
result += value;
}
return result;
}