shift method

NodeOutput shift()

Implementation

NodeOutput shift() {
  if (this.s.length == 0) throw 'Queue is empty';
  return this.s.removeAt(0);
}