Returns a new set formed by adding the objects in a given set to the receiving set.
SDKs
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Returns a new set formed by adding the objects in a given set to the receiving set.
SDKs
Framework
+ set
Creates and returns an empty set.
+ set With Array:
Creates and returns a set containing a uniqued collection of the objects contained in a given array.
+ set With Object:
Creates and returns a set that contains a single given object.
+ set With Objects:
Creates and returns a set containing the objects in a given argument list.
+ set With Objects: count:
Creates and returns a set containing a specified number of objects from a given C array of objects.
+ set With Set:
Creates and returns a set containing the objects from another set.
- set By Adding Object:
Returns a new set formed by adding a given object to the receiving set.
- set By Adding Objects From Array:
Returns a new set formed by adding the objects in a given array to the receiving set.