---
title: "formSymmetricDifference(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/indexset/formsymmetricdifference(_:)"
---

# formSymmetricDifference(_:)

Exclusive or the IndexSet with other.

## Declaration

```swift
mutating func formSymmetricDifference(_ other: IndexSet)
```

## See Also

### Combining Index Sets

- [formIntersection(_:)](foundation/indexset/formintersection(_:).md)
- [formUnion(_:)](foundation/indexset/formunion(_:).md)
- [intersection(_:)](foundation/indexset/intersection(_:).md)
- [symmetricDifference(_:)](foundation/indexset/symmetricdifference(_:).md)
- [union(_:)](foundation/indexset/union(_:).md)
