---
title: "intersectsSet(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsorderedset/intersectsset(_:)"
---

# intersectsSet(_:)

Returns a Boolean value that indicates whether at least one object in the receiving ordered set is also present in another given set.

## Declaration

```swift
func intersectsSet(_ set: Set<AnyHashable>) -> Bool
```

## Parameters

- `set`: The set.

## Return Value

Return Value true if at least one object in the receiving ordered set is also present in other, otherwise false.

## See Also

### Comparing Sets

- [isEqual(to:)](foundation/nsorderedset/isequal(to:).md)
- [intersects(_:)](foundation/nsorderedset/intersects(_:).md)
- [isSubset(of:)](foundation/nsorderedset/issubset(of:)-7brc.md)
- [isSubset(of:)](foundation/nsorderedset/issubset(of:)-8zx9x.md)
