Is there something like mulitiSet in JavaScript?

2019-08-08 02:30发布

问题:

I know that JavaScript now has sets, but I wonder if there is something to realize the function of multiSet, or if there is some framework that has the functions of multiset which I really need a lot.

Or I have to code it by myself to do the research of Red-Black Tree?

回答1:

There are no built-in multiset structure, but there are some libraries that have such:

  • mnemonist → MultiSet
  • TSTL → TreeMultiSet

Feel free to add your favorite library in this question.