clear method

void clear ()

Removes all elements in the set.

Implementation

void clear() {
  removeAll(toList());
}