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>
2025-05-29 13:06:29 -07:00
..
2024-02-27 23:03:49 -05:00
2023-01-27 15:36:29 -08:00
2025-01-24 15:17:44 +01:00
2024-06-05 15:24:04 -07:00
2024-03-05 16:57:04 +00:00
2024-11-11 12:39:19 -08:00
2025-01-13 08:31:00 -08:00
2024-02-08 17:34:22 -08:00
2025-05-08 19:59:08 -05:00
2023-03-04 12:24:55 -08:00
2025-01-24 10:57:46 -05:00
2025-05-08 10:03:42 -07:00
2024-01-18 12:08:13 -08:00
2024-04-16 15:32:38 -07:00
2025-01-06 12:35:44 -08:00
2023-11-01 19:23:16 -07:00
2024-04-16 15:32:38 -07:00
2023-10-13 15:38:22 -07:00
2023-11-22 12:09:59 -05:00
2024-04-16 15:32:38 -07:00
2024-07-10 09:57:00 -07:00
2024-11-05 10:27:52 -08:00
2023-01-27 15:36:29 -08:00
2025-05-19 10:42:03 +01:00
2025-01-03 10:48:31 -08:00
2025-04-25 14:19:10 -07:00
2024-04-16 15:32:38 -07:00
2023-01-27 15:36:29 -08:00
2024-04-16 15:32:38 -07:00
2024-07-10 09:57:00 -07:00
2024-07-10 09:57:00 -07:00
2025-04-02 07:36:04 -07:00
2024-11-05 10:27:52 -08:00
2024-05-24 14:11:19 -04:00
2023-01-27 15:36:29 -08:00
2024-03-27 08:53:52 -05:00
2023-01-27 15:36:29 -08:00
2024-04-16 15:32:38 -07:00
2023-01-27 15:36:29 -08:00
2024-06-05 15:57:27 -07:00
2024-06-05 15:24:04 -07:00
2024-04-16 15:32:38 -07:00
2025-05-29 13:06:29 -07:00
2024-06-10 18:38:27 -04:00
2025-01-22 10:20:56 -08:00
2024-12-23 07:43:56 -08:00
2025-05-12 11:31:12 -05:00
2023-04-03 17:14:14 -04:00
2025-05-07 16:54:29 -07:00
2025-04-07 11:11:45 -07:00
2024-04-16 15:32:38 -07:00
2024-04-04 14:38:16 -07:00
2025-01-24 12:20:44 +01:00
2024-10-09 12:59:25 -05:00
2025-01-23 15:06:47 -06:00
2024-04-16 15:32:38 -07:00