Initializer

init(object:)

Creates and returns a set that contains a single given object.

Declaration

convenience init(object: Any)

Parameters

object

The object to add to the new set. object receives a retain message after being added to the set.

Return Value

A new set that contains a single member, object.

See Also

Creating a Set

init(objects: UnsafePointer<AnyObject>, count: Int)

Creates and returns a set containing a specified number of objects from a given C array of objects.

func adding(Any) -> Set<AnyHashable>

Returns a new set formed by adding a given object to the receiving set.

func addingObjects(from: Set<AnyHashable>) -> Set<AnyHashable>

Returns a new set formed by adding the objects in a given set to the receiving set.

func addingObjects(from: [Any]) -> Set<AnyHashable>

Returns a new set formed by adding the objects in a given array to the receiving set.