docs: public T head() {
          int index = iter.nextIndex();
          if (index >= list.size()) {
              throw new NoSuchElementException();
          } else {
              return list.get(index);
          }
      }