contains(_:)
Returns a Boolean value that indicates whether a given object is present in the ordered set.
Declaration
func contains(_ object: Any) -> BoolParameters
- object:
The object for which to test membership of the ordered set.
Return Value
YES if object is present in the set, otherwise false.
See Also
Accessing Set Members
enumerateObjects(at:options:using:)enumerateObjects(_:)enumerateObjects(options:using:)firstObjectlastObjectobject(at:)subscript(_:)objects(at:)index(of:)index(of:inSortedRange:options:usingComparator:)index(ofObjectAt:options:passingTest:)index(ofObjectPassingTest:)index(_:ofObjectPassingTest:)indexes(ofObjectsAt:options:passingTest:)indexes(ofObjectsPassingTest:)