This is an extension of Immutable.js that provides sorted collections SortedMap and SortedSet. The current implementation is using highly optimized B-tree memory structure.
The SortedSet constructor returns a Set rather than a SortedSet when called with an empty seq (as opposed to when called with a non-empty seq or undefined).
What happened
The
SortedSet
constructor returns aSet
rather than aSortedSet
when called with an empty seq (as opposed to when called with a non-empty seq orundefined
).How to reproduce