File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -210,6 +210,7 @@ extension NSOrderedSet {
210
210
}
211
211
212
212
open func isSubset( of other: NSOrderedSet ) -> Bool {
213
+ // If self is larger then self cannot be a subset of other
213
214
if count > other. count {
214
215
return false
215
216
}
@@ -223,6 +224,7 @@ extension NSOrderedSet {
223
224
}
224
225
225
226
open func isSubset( of set: Set < AnyHashable > ) -> Bool {
227
+ // If self is larger then self cannot be a subset of set
226
228
if count > set. count {
227
229
return false
228
230
}
Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ extension NSSet {
208
208
}
209
209
210
210
open func isSubset( of otherSet: Set < AnyHashable > ) -> Bool {
211
+ // If self is larger then self cannot be a subset of otherSet
211
212
if count > otherSet. count {
212
213
return false
213
214
}
You can’t perform that action at this time.
0 commit comments