---
title: "index(before:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/collectiondifference/index(before:)"
---

# index(before:)

## Declaration

```swift
func index(before index: CollectionDifference<ChangeElement>.Index) -> CollectionDifference<ChangeElement>.Index
```
