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.
Set.isDisjoint<S>(with: S)
1 parent a2540c2 commit 8612f2fCopy full SHA for 8612f2f
stdlib/public/core/Set.swift
@@ -820,6 +820,9 @@ extension Set: SetAlgebra {
820
@inlinable
821
public func isDisjoint<S: Sequence>(with other: S) -> Bool
822
where S.Element == Element {
823
+ if let s = other as? Set<Element> {
824
+ return isDisjoint(with: s)
825
+ }
826
return _isDisjoint(with: other)
827
}
828
@@ -1142,7 +1145,7 @@ extension Set {
1142
1145
1143
1146
return true
1144
1147
-
1148
+
1149
1150
internal func _isDisjoint<S: Sequence>(with other: S) -> Bool
1151
0 commit comments