NSMutableOrderedSet
A dynamic, ordered collection of unique objects.
Declaration
class NSMutableOrderedSetOverview
NSMutableOrderedSet objects are not like C arrays. That is, even though you may specify a size when you create a mutable ordered set, the specified size is regarded as a “hint”; the actual size of the set is still 0. This means that you cannot insert an object at an index greater than the current count of an set. For example, if a set contains two objects, its size is 2, so you can add objects at indices 0, 1, or 2. Index 3 is illegal and out of bounds; if you try to add an object at index 3 (when the size of the array is 2), NSMutableOrderedSet raises an exception.
Topics
Creating a Mutable Ordered Set
Adding, Removing, and Reordering Entries
add(_:)add(_:count:)addObjects(from:)insert(_:at:)insert(_:at:)remove(_:)removeObject(at:)removeObjects(at:)removeObjects(in:)removeObjects(in:)removeAllObjects()replaceObject(at:with:)replaceObjects(at:with:)replaceObjects(in:with:count:)setObject(_:at:)moveObjects(at:to:)exchangeObject(at:withObjectAt:)filter(using:)