Returns a closed range that contains both of its bounds.
- iOS 8.0+
- macOS 10.10+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
- Xcode 9.3+
The lower bound for the range.
The upper bound for the range.
Use the closed range operator (
...) to create a closed range of any type that conforms to the
Comparable protocol. This example creates a
Closed from “a” up to, and including, “z”.