Instance Method

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.

Declaration

- (BOOL)intersectsOrderedSet:(NSOrderedSet<ObjectType> *)other;

Parameters

other

The other ordered 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.

- intersectsSet:

Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given 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.