code: void clear(int list) {
  		int last = getLast(list);
  		while (last != nullNode()) {
  			int n = last;
  			last = getPrev(n);
  			freeNode_(n);
  		}
  		m_lists.setField(list, 0, -1);
  		m_lists.setField(list, 1, -1);
  		setListSize_(list, 0);
  	}
docs: Clears all nodes from the list.