drain method

TraverseQueue drain()

Implementation

TraverseQueue drain() {
  var queue = TraverseQueue();
  queue.s.addAll(this.s);
  this.s = [];
  return queue;
}