code: public ListBuffer<A> appendList(List<A> xs) {
          while (xs.nonEmpty()) {
              append(xs.head);
              xs = xs.tail;
          }
          return this;
      }
docs: Append all elements in a list to buffer.