You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/util/set
Brad Fitzpatrick ef49e75b10 util/set: add SmallSet.SoleElement, fix bug, add more tests
This adds SmallSet.SoleElement, which I need in another repo for
efficiency. I added tests, but those tests failed because Add(1) +
Add(1) was promoting the first Add's sole element to a map of one
item. So fix that, and add more tests.

Updates tailscale/corp#29093

Change-Id: Iadd5ad08afe39721ee5449343095e389214d8389
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
6 months ago
..
handle.go util/set: add some useful utility functions for Set (#9535) 2 years ago
set.go util/set: add Of variant of SetOf that takes variadic parameter 2 years ago
set_test.go util/set: add Of variant of SetOf that takes variadic parameter 2 years ago
slice.go all: use iterators over slice views more 1 year ago
slice_test.go util/set: move Slice type from corp to oss 3 years ago
smallset.go util/set: add SmallSet.SoleElement, fix bug, add more tests 6 months ago
smallset_test.go util/set: add SmallSet.SoleElement, fix bug, add more tests 6 months ago