crate-py / rpds

Python bindings to the Rust rpds crate for persistent data structures
https://rpds.readthedocs.io/
MIT License
35 stars 12 forks source link

Implements `__hash__` for collections #81

Closed FlickerSoul closed 1 month ago

FlickerSoul commented 2 months ago

This PR adds __hash__ to HashTrieSet, HashTrieMap, and List so that the instances of them are hashable (if underlaying elements are hashable).

Related to #50

FlickerSoul commented 1 month ago

@Julian Hi Julian, just a friendly ping, this PR is ready for review whenever you're ready :))

Julian commented 1 month ago

Hey! Apologies, I missed it! Thanks for the ping, will have a look.

Julian commented 1 month ago

I've been a bit tied up but just mentioning I still will try to look at this in the next few days, sorry for the delay!

FlickerSoul commented 1 month ago

No worries at all! Take your time :))

Julian commented 1 month ago

Thanks again, good work! I've merged and tagged a release, so this should go out imminently.