Instance Method

intersectsSet:

Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given set.

Declaration

- (BOOL)intersectsSet:(NSSet<ObjectType> *)set;

Parameters

set

The set.

Return Value

YES if at least one object in the receiving ordered set is also present in other, otherwise NO.

See Also

Comparing Sets

- isEqualToOrderedSet:

Compares the receiving ordered set to another ordered set.

- intersectsOrderedSet:

Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given ordered set.

- isSubsetOfOrderedSet:

Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given ordered set.

- isSubsetOfSet:

Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given set.