Contents

init(set:copyItems:)

Initializes a new ordered set with the contents of a set, optionally copying the objects in the set.

Declaration

convenience init(set: Set<AnyHashable>, copyItems flag: Bool)

Parameters

  • set:

    The set.

  • flag:

    If True the objects are copied to the ordered set; otherwise False.

Return Value

An initialized ordered set containing the objects in the set.

See Also

Initializing an Ordered Set