addThrough method

T addThrough()

Implementation

T addThrough() {
  if (length < 1) throw ('cannot add through an empty list');
  return (this..removeAt(0)).fold(this[0], (previousValue, element) => previousValue + element);
}