code: public A next() {
          A x = elems.head;
          if (!elems.isEmpty()) {
              elems = elems.tail;
              if (elems.isEmpty()) last = null;
              count--;
          }
          return x;
      }
docs: Return first element in this buffer and remove