replaceObject(at:with:)
Replaces the object at index with anObject.
Declaration
func replaceObject(at index: Int, with anObject: Any)Parameters
- index:
The index of the object to be replaced. This value must not exceed the bounds of the array.
- anObject:
The object with which to replace the object at index
indexin the array. This value must not benil.