---
title: "contains(integersIn:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/indexset/contains(integersin:)-4k1o8"
---

# contains(integersIn:)

Returns true if self contains all of the integers in range.

## Declaration

```swift
func contains<R>(integersIn range: R) -> Bool where R : RangeExpression, R.Bound == Int
```
