Contents

append(moving:)

Moves the elements of a output span to the end of this array, leaving the span empty.

Declaration

mutating func append(moving items: inout OutputSpan<Element>)

Parameters

  • items:

    An output span whose contents need to be appended to this array.

Discussion

If the array does not have sufficient capacity to hold all new items, then this reallocates the array’s storage to grow its capacity, using a geometric growth rate.