addOne method

void addOne(
  1. int el
)

Add a single element to the set. An isolated element is stored as a range el..el.

Implementation

void addOne(int el) {
  if (readonly) throw StateError("can't alter readonly IntervalSet");
  addRange(el, el);
}