---
title: "addingObjects(from:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsset/addingobjects(from:)-544m9"
---

# addingObjects(from:)

Returns a new set formed by adding the objects in a given array to the receiving set.

## Declaration

```swift
func addingObjects(from other: [Any]) -> Set<AnyHashable>
```

## Parameters

- `other`: The array of objects to add to the set.

## Return Value

Return Value A new set formed by adding the objects in other to the receiving set.

## See Also

### Creating a Set

- [init(object:)](foundation/nsset/init(object:).md)
- [init(objects:count:)](foundation/nsset/init(objects:count:)-65ni4.md)
- [adding(_:)](foundation/nsset/adding(_:).md)
- [addingObjects(from:)](foundation/nsset/addingobjects(from:)-2i31h.md)
