---
title: "intersectSet(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsmutableorderedset/intersectset(_:)"
---

# intersectSet(_:)

Removes from the receiving ordered set each object that isn’t a member of another set.

## Declaration

```swift
func intersectSet(_ other: Set<AnyHashable>)
```

## Parameters

- `other`: The set with which to perform the intersection.

## See Also

### Combining and Recombining Entries

- [intersect(_:)](foundation/nsmutableorderedset/intersect(_:).md)
- [minus(_:)](foundation/nsmutableorderedset/minus(_:).md)
- [minusSet(_:)](foundation/nsmutableorderedset/minusset(_:).md)
- [union(_:)](foundation/nsmutableorderedset/union(_:).md)
- [unionSet(_:)](foundation/nsmutableorderedset/unionset(_:).md)
