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

# formIntersection(_:)

Intersects the IndexSet with other.

## Declaration

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

## See Also

### Combining Index Sets

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