Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sorted maps and sets #57

Closed
jeaye opened this issue Feb 17, 2024 · 1 comment
Closed

Add sorted maps and sets #57

jeaye opened this issue Feb 17, 2024 · 1 comment
Assignees

Comments

@jeaye
Copy link
Member

jeaye commented Feb 17, 2024

Clojure has sorted-map, which builds a PersistentTreeMap, and sorted-set, which builds a PersistentTreeSet. immer doesn't support these, but there's some good info here: arximboldi/immer#105

jank will need its own version, but hopefully we can benefit from the stdlib.

Overall, since we have hash maps, array maps, and hash sets, I think the sorted variants are low priority.

@jeaye jeaye mentioned this issue Feb 17, 2024
13 tasks
@jeaye jeaye self-assigned this Jul 16, 2024
@jeaye
Copy link
Member Author

jeaye commented Nov 3, 2024

❯ git ls-files | grep sorted
compiler+runtime/include/cpp/jank/runtime/obj/persistent_sorted_map.hpp
compiler+runtime/include/cpp/jank/runtime/obj/persistent_sorted_map_sequence.hpp
compiler+runtime/include/cpp/jank/runtime/obj/persistent_sorted_set.hpp
compiler+runtime/include/cpp/jank/runtime/obj/persistent_sorted_set_sequence.hpp
compiler+runtime/include/cpp/jank/runtime/obj/transient_sorted_map.hpp
compiler+runtime/include/cpp/jank/runtime/obj/transient_sorted_set.hpp
compiler+runtime/src/cpp/jank/runtime/obj/persistent_sorted_map.cpp
compiler+runtime/src/cpp/jank/runtime/obj/persistent_sorted_set.cpp
compiler+runtime/src/cpp/jank/runtime/obj/transient_sorted_map.cpp
compiler+runtime/src/cpp/jank/runtime/obj/transient_sorted_set.cpp

@jeaye jeaye closed this as completed Nov 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant