applitopia / immutable-sorted

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.
http://applitopia.github.io/immutable-sorted/
Other
29 stars 6 forks source link

Initializing SortedSet with empty seq returns Set #2

Closed DerGuteMoritz closed 6 years ago

DerGuteMoritz commented 7 years ago

What happened

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).

How to reproduce

> const { SortedSet, Seq } = require('immutable-sorted')
> SortedSet(Seq())
Set {}
applitopia commented 6 years ago

Thank you for reporting this bug. Fixed in v0.2.0.