Merge pull request #10700 from ndeloof/attach

support `attach`
This commit is contained in:
Guillaume Lours 2023-07-10 15:17:44 +02:00 committed by GitHub
commit ee6aeed84e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 12 deletions

View file

@ -47,3 +47,9 @@ func (s Set[T]) Elements() []T {
}
return elements
}
func (s Set[T]) RemoveAll(elements ...T) {
for _, e := range elements {
s.Remove(e)
}
}