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

func intersectsSet(_ set: Set<AnyHashable>) -> Bool

Parameters

set

The set.

Return Value

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

See Also

Comparing Sets

func isEqual(to: NSOrderedSet) -> Bool

Compares the receiving ordered set to another ordered set.

func intersects(NSOrderedSet) -> Bool

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

func isSubset(of: NSOrderedSet) -> Bool

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

func isSubset(of: Set<AnyHashable>) -> Bool

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