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

# minus(_:)

Removes each object in another given ordered set from the receiving mutable ordered set, if present.

## Declaration

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

## Parameters

- `other`: The ordered set of objects to remove from the receiving set.

## See Also

### Combining and Recombining Entries

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