<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "swift: -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSOrderedCollectionDifference/init(insertIndexes:insertedObjects:removeIndexes:removedObjects:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSOrderedCollectionDifference(im)initWithInsertIndexes:insertedObjects:removeIndexes:removedObjects:::SYNTHESIZED::c:objc(cs)NSOrderedCollectionDifference"
  },
  "title" : "init(insertIndexes:insertedObjects:removeIndexes:removedObjects:)"
}
-->

# init(insertIndexes:insertedObjects:removeIndexes:removedObjects:)

```
convenience init(insertIndexes inserts: IndexSet, insertedObjects: [Any]?, removeIndexes removes: IndexSet, removedObjects: [Any]?)
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)