clone(capacity:)
Copy the contents of this array into a newly allocated unique array instance with the specified capacity.
Declaration
func clone(capacity: Int) -> UniqueArray<Element>Parameters
- capacity:
The desired capacity of the resulting unique array.
capacitymust be greater than or equal tocount.