sum property

double get sum

Implementation

double get sum {
  var length = this.length;
  if (length == 0) return 0;

  var total = first;

  for (var i = 1; i < length; ++i) {
    total += this[i];
  }

  return total;
}