Replaces the given object at the specified index of the mutable ordered set.
- iOS 6.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The object to replace the set’s content.
The index in the mutable ordered set at which to insert
object. This value must not be greater than the count of elements in the array.
If the index is already occupied, the objects at index and beyond are shifted by adding
1 to their indices to make room.
This method is identical to
Adding, Removing, and Reordering Entries
Appends a given object to the end of the mutable ordered set, if it is not already a member.
Appends the given number of objects from a given C array to the end of the mutable ordered set.
Appends to the end of the mutable ordered set each object contained in a given array that is not already a member.
Inserts the given object at the specified index of the mutable ordered set, if it is not already a member.
Evaluates a given predicate against the mutable ordered set’s content and leaves only objects that match.