Contents

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. capacity must be greater than or equal to count.

Discussion