---
title: "...(_:_:)"
framework: swift
role: symbol
role_heading: Operator
path: "swift/unicode/scalar/'...(_:_:)"
---

# ...(_:_:)

Returns a closed range that contains both of its bounds.

## Declaration

```swift
static func ... (minimum: Self, maximum: Self) -> ClosedRange<Self>
```

## Parameters

- `minimum`: The lower bound for the range.
- `maximum`: The upper bound for the range.

## Discussion

Discussion Use the closed range operator (...) to create a closed range of any type that conforms to the Comparable protocol. This example creates a ClosedRange<Character> from “a” up to, and including, “z”. let lowercase = "a"..."z" print(lowercase.contains("z")) // Prints "true" note: minimum <= maximum.

## See Also

### Creating Ranges of Scalars

- [...(_:)](swift/unicode/scalar/'...(_:)-9u9rz.md)
- [...(_:)](swift/unicode/scalar/'...(_:)-7lhvp.md)
- [..<(_:)](swift/unicode/scalar/'.._(_:).md)
- [..<(_:_:)](swift/unicode/scalar/'.._(_:_:).md)
