---
title: "init(insertIndexes:insertedObjects:removeIndexes:removedObjects:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nsorderedcollectiondifference/init(insertindexes:insertedobjects:removeindexes:removedobjects:)"
---

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

## Declaration

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