Initializer

init(array:)

Returns a counted set object initialized with the contents of a given array.

Declaration

convenience init(array: [Any])

Parameters

anArray

An array of objects to add to the new set.

Return Value

An initialized counted set object with the contents of anArray. The returned object might be different than the original receiver.

See Also

Initializing a Counted Set

init(set: Set<AnyHashable>)

Returns a counted set object initialized with the contents of a given set.

init(capacity: Int)

Returns a counted set object initialized with enough memory to hold a given number of objects.