We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbaa98b commit 699df6aCopy full SHA for 699df6a
threadunsafe.go
@@ -76,6 +76,9 @@ func (set *threadUnsafeSet) Contains(i ...interface{}) bool {
76
77
func (set *threadUnsafeSet) IsSubset(other Set) bool {
78
_ = other.(*threadUnsafeSet)
79
+ if set.Cardinality() > other.Cardinality() {
80
+ return false
81
+ }
82
for elem := range *set {
83
if !other.Contains(elem) {
84
return false
0 commit comments