sum method
E
sum()
Implementation
E sum() {
var sum = (E == int ? 0 : 0.0) as E;
for (E current in this) {
sum = ((sum) + (current)) as E;
}
return sum;
}
E sum() {
var sum = (E == int ? 0 : 0.0) as E;
for (E current in this) {
sum = ((sum) + (current)) as E;
}
return sum;
}