clear method

void clear()

Clears the list.

Implementation

void clear() {
  _head = null;
  _length = 0;
}