Contents

append(copying:)

Copies the elements of a span to the end of this array.

Declaration

mutating func append(copying newElements: Span<Element>)

Parameters

  • newElements:

    A span whose contents to copy into the array.

Discussion

If the array does not have sufficient capacity to hold enough elements, then this reallocates the array’s storage to extend its capacity, using a geometric growth rate.