3 ms·
That is true for the internal implementation details but HashSet provides a different API, it is not just a type alias. So you don't have to worry about semanti
by progbits 3y ago
That is true for the internal implementation details but HashSet provides a different API, it is not just a type alias. So you don't have to worry about semantics of what the values mean (like the bools in Go), and it has no size overhead.