3 ms·
Java as well: https://github.com/pengisgood/jdk-source-code/blob/master/src/java/util/HashSet.java#L106 https://github.com/pengisgood/jdk-source-code/blob/maste
by brabel 3y ago
Java as well: https://github.com/pengisgood/jdk-source-code/blob/master/src/java/util/HashSet.java#L106 https://github.com/pengisgood/jdk-source-code/blob/master/sr...
EDIT : and Rust: https://docs.rs/hashbrown/latest/hashbrown/hash_set/index.html https://docs.rs/hashbrown/latest/hashbrown/hash_set/index.ht... (this is used by the default implementation of HashSet).