Although this library will be useful for adding better data structures to the language. I was thinking of adding immutable dictionaries and sets. This will save me from having to implement them myself.
Glad someone may find it useful :) Let me know if there’s anything missing from it that you feel you’d like to have. I don’t want to clutter the primary package up too much, but I wouldn’t be adverse to having a seq-extra sub-package with community requested functionality.
I did time-complexity on most (I think) of them, although the ones based on Set are tentative. I’ll try to flesh it out a bit more though in the next day or so hopefully.
Great work! Needs a “show” tag. Excited about using the HashMap and Set in my lisp implementation.
Awesome, I’ll try this out in a project I’m working on and see how it performs against the native structures there.
Next step Go-lisp!
Way ahead of you.
https://github.com/zhemao/glisp
Although this library will be useful for adding better data structures to the language. I was thinking of adding immutable dictionaries and sets. This will save me from having to implement them myself.
Glad someone may find it useful :) Let me know if there’s anything missing from it that you feel you’d like to have. I don’t want to clutter the primary package up too much, but I wouldn’t be adverse to having a
seq-extrasub-package with community requested functionality.Could you document the time/space complexity of the different structures and operations?
I did time-complexity on most (I think) of them, although the ones based on Set are tentative. I’ll try to flesh it out a bit more though in the next day or so hopefully.