Adds the elements of a sequence to the end of the array.
- Xcode 10.2+
- Swift Standard Library
The elements to append to the array.
Use this method to append the elements of a sequence to the end of this array. This example appends the elements of a
Range<Int> instance to an array of integers.
Complexity: O(m) on average, where m is the length of
new, over many calls to
append(contents on the same array.