tailscale/util/set
Simon Law e3b16135b2
util/set: add iterator support to Set[T] (#20159)
This patch adds:

- Set.All which returns an iter.Seq to complement Set.Slice.

- Set.AddSeq which adds an iter.Seq.

- Set.DeleteSeq which deletes an iter.Seq to complement Set.AddSeq
  and provide the missing method for deleting multiple elements.

- Set.DeleteSlice and Set.DeleteSet to complement AddSlice and AddSet.

Updates #cleanup

Signed-off-by: Simon Law <sfllaw@tailscale.com>
2026-06-18 00:12:56 -07:00
..
handle.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
intset_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
intset.go all: use Go 1.26 things, run most gofix modernizers 2026-03-06 13:32:03 -08:00
set_test.go util/set: add iterator support to Set[T] (#20159) 2026-06-18 00:12:56 -07:00
set.go util/set: add iterator support to Set[T] (#20159) 2026-06-18 00:12:56 -07:00
slice_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
slice.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
smallset_test.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00
smallset.go all: remove AUTHORS file and references to it 2026-01-23 15:49:45 -08:00