Replaces the objects in the receiving array specified by a given range with all of the objects from a given array.
- 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
other has fewer objects than are specified by
a, the extra objects in the receiving array are removed. If
other has more objects than are specified by
a, the extra objects from
other are inserted into the receiving array.