---
title: "addObjects(from:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsmutableset/addobjects(from:)"
---

# addObjects(from:)

Adds to the set each object contained in a given array that is not already a member.

## Declaration

```swift
func addObjects(from array: [Any])
```

## Parameters

- `array`: An array of objects to add to the set.

## See Also

### Related Documentation

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

### Adding and removing entries

- [add(_:)](foundation/nsmutableset/add(_:).md)
- [filter(using:)](foundation/nsmutableset/filter(using:).md)
- [remove(_:)](foundation/nsmutableset/remove(_:).md)
- [removeAllObjects()](foundation/nsmutableset/removeallobjects().md)
