5
Set?
(mander.xyz)
probably not. Don't need it much. Using map gets you the same functionality
I find hacking maps to be sets with map[T]bool
or map[T]struct{}
to be awkward for the most rudimentary use case, membership checking, and downright onerous for anything more "complicated."
I feel as though the datastructure "an unordered collection of things without duplicates, with constant time lookup" is so simple and useful, I don't see any reason to keep it out of the language.
This is a community dedicated to the go programming language.
Useful Links:
Rules: