Is there something like mulitiSet in JavaScript?

*爱你&永不变心* 提交于 2019-12-11 03:43:39

问题


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.



来源:https://stackoverflow.com/questions/32132242/is-there-something-like-mulitiset-in-javascript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!