Returns a Boolean value that indicates whether this set has no members in common with the given set.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
Parameters
other
Another set.
Return Value
true
if the set has no elements in common with other
; otherwise, false
.
Discussion
In the following example, the employees
set is disjoint with the visitors
set because no name appears in both sets.