Appends the elements of a sequence to a range-replaceable collection.
SDK
- Xcode 10.0+
Framework
- Swift Standard Library
Declaration
Parameters
lhs
The array to append to.
rhs
A collection or finite sequence.
Discussion
Use this operator to append the elements of a sequence to the end of range-replaceable collection with same Element
type. This example appends the elements of a Range<Int>
instance to an array of integers.
Complexity: O(m), where m is the length of the right-hand-side argument.