halfbrown icon indicating copy to clipboard operation
halfbrown copied to clipboard

HashSet support

Open segeljakt opened this issue 3 years ago • 1 comments

Subject of the feature

It would be nice to have a halfbrown::HashSet<K> that works well for a small number of keys.

It could be implemented as:

struct HashSet<K>(halfbrown::HashMap<K, ()>);

segeljakt avatar Dec 22 '22 09:12 segeljakt

That sounds cool :D I think it's not too complicated I'll put it on the TODO list but I don't know when I'll get to that, but if you want to make a PR I'll happily merge it :)

Licenser avatar Dec 22 '22 12:12 Licenser