3 ms·
While you're not wrong, and that is how you implement a set in Go, it's still a workaround over a standard library Set type unfortunately. But, with Go's gener
by Cthulhu_ 5y ago
While you're not wrong, and that is how you implement a set in Go, it's still a workaround over a standard library Set type unfortunately.
But, with Go's generics, I hope they will add new collection types to the standard library.