Appends or replaces the object at the specified index.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The object to insert or append.
The index. If the index is equal to the length of the collection, then it inserts the object at that index, otherwise it replaces the object at that index with the given object.
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.