addOne method
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);
}
Add a single element to the set. An isolated element is stored as a range el..el.
void addOne(int el) {
if (readonly) throw StateError("can't alter readonly IntervalSet");
addRange(el, el);
}