Creates new instance with optional given values and/or implementation options. The options are the same as used by SortedMap.
input values
config options
Iterates over values in the set.
Returns a copy of this instance. Shallow or deep copies are implementation specific.
Returns an empty/blank instance of same type (with possibly same config, if any).
Returns true
if this value is equivalent to o
. Also see {@link ICompare.compare} and {@link IHash.hash}.
Generated using TypeDoc
Sorted set implementation with standard ES6 Set API, customizable value equality and comparison semantics and additional functionality:
Furthermore, this class implements the ICopy, IEmpty`, ICompare and IEquiv interfaces defined by {@link @thi.ng/api# | @thi.ng/api}. The latter two allow instances to be used as keys themselves in other data types defined in this (and other) package(s).
This set uses a SortedMap as backing store and therefore has the same resizing characteristics.