intersects(_:)
Returns a Boolean value that indicates whether at least one object in the receiving set is also present in another given set.
Declaration
func intersects(_ otherSet: Set<AnyHashable>) -> BoolParameters
- otherSet:
The set with which to compare the receiving set.
Return Value
true if at least one object in the receiving set is also present in otherSet, otherwise false.
Discussion
Object equality is tested using isEqual:.