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

# intersection(_:)

Intersects the IndexSet with other.

## Declaration

```swift
func intersection(_ other: IndexSet) -> IndexSet
```

## See Also

### Combining Index Sets

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