SortedSet<T> constructor

SortedSet<T>([
  1. int _compare(
    1. T,
    2. T
    )?
])

Creates an empty SortedSet.

Optionally inject a compare function. If null, it assumes elements are Comparable.

Implementation

SortedSet([this._compare])
  : _container = collection.SplayTreeSet<T>(_compare);