replaceObjects(at:with:)
Replaces the objects at the specified indexes with the new objects.
Declaration
func replaceObjects(at indexes: IndexSet, with objects: [Any])Parameters
- indexes:
The indexes of the objects to be replaced.
- objects:
The objects with which to replace the objects in the receiving mutable ordered set at the indexes specified by indexes.
The count of locations in
indexesmust equal the count of objects.
Discussion
The indexes in indexes are used in the same order as the objects in objects.