sum property

int get sum

Implementation

int 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;
}