---
title: "contains(_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/partialrangefrom/contains(_:)"
---

# contains(_:)

Returns a Boolean value indicating whether the given element is contained within the range expression.

## Declaration

```swift
func contains(_ element: Bound) -> Bool
```

## Parameters

- `element`: The element to check for containment.

## Return Value

Return Value true if element is contained in the range expression; otherwise, false.
