Replaces the objects in the receiving array specified by one given range with the objects in another array specified by another range.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The range of objects to be replaced in (or removed from) the receiving array.
The array of objects from which to select replacements for the objects in
The range of objects be selected from
otheras replacements for the objects in
The lengths of
other don’t have to be equal: If
a is longer than
other, the extra objects in the receiving array are removed; if
other is longer than
a, the extra objects from
other are inserted into the receiving array.