---
title: "setSet(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsmutableset/setset(_:)"
---

# setSet(_:)

Empties the receiving set, then adds each object contained in another given set.

## Declaration

```swift
func setSet(_ otherSet: Set<AnyHashable>)
```

## Parameters

- `otherSet`: The set whose members replace the receiving set’s content.

## See Also

### Combining and recombining sets

- [union(_:)](foundation/nsmutableset/union(_:).md)
- [minus(_:)](foundation/nsmutableset/minus(_:).md)
- [intersect(_:)](foundation/nsmutableset/intersect(_:).md)
