fix: align slice/set equality and harden queue API

This commit is contained in:
2026-03-17 14:37:35 +03:00
parent 4232591fcc
commit 156fa3153c
6 changed files with 153 additions and 29 deletions

3
set.go
View File

@@ -62,9 +62,6 @@ func (s Set[T]) Equal(s2 Set[T]) bool {
if s.Len() != s2.Len() {
return false
}
if s.Cap() != s2.Cap() {
return false
}
for i := range s {
if !reflect.DeepEqual(s[i], s2[i]) {
return false