foldThrough method

T foldThrough()

Implementation

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