Returns a Boolean value that indicates whether a given object is present in the set.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
An object to look for in the set.
anObject is present in the set, otherwise
Each element of the set is checked for equality with
anObject until a match is found or the end of the set is reached. Objects are considered equal if
Accessing Set Members
An array containing the set’s members, or an empty array if the set has no members.
Returns one of the objects in the set, or
nil if the set contains no objects.
Evaluates a given predicate against each object in the receiving set and returns a new set containing the objects for which the predicate returns true.
Determines whether a given object is present in the set, and returns that object if it is.
Returns an enumerator object that lets you access each object in the set.