Replaces the object at the specified index with the new object.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The index of the object to be replaced. This value must not exceed the bounds of the mutable ordered set.
The object with which to replace the object at the index in the ordered set specified by
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.