Initializer

init(set:)

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

Declaration

convenience init(set: Set<AnyHashable>)

Parameters

aSet

An set of objects to add to the new set.

Return Value

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

See Also

Initializing a Counted Set

init(array: [Any])

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

init(capacity: Int)

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