anyObject()
Returns one of the objects in the set, or nil if the set contains no objects.
Declaration
func anyObject() -> Any?Return Value
One of the objects in the set, or nil if the set contains no objects. The object returned is chosen at the set’s convenience—the selection is not guaranteed to be random.