SortedSet<T>.from constructor

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

Creates a SortedSet containing the elements of the given iterable.

Implementation

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