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

# intersect(_:)

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

## Declaration

```swift
func intersect(_ other: NSOrderedSet)
```

## Parameters

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

## See Also

### Combining and Recombining Entries

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