<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/PredicateExpressions/ClosedRange",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation20PredicateExpressionsO11ClosedRangeV"
  },
  "title" : "PredicateExpressions.ClosedRange"
}
-->

# PredicateExpressions.ClosedRange

```
struct ClosedRange<LHS, RHS> where LHS : PredicateExpression, RHS : PredicateExpression, LHS.Output : Comparable, LHS.Output == RHS.Output
```

## Topics

### Initializers

[`init(lower: LHS, upper: RHS)`](/documentation/Foundation/PredicateExpressions/ClosedRange/init(lower:upper:))

### Instance Properties

[`let lower: LHS`](/documentation/Foundation/PredicateExpressions/ClosedRange/lower)

[`let upper: RHS`](/documentation/Foundation/PredicateExpressions/ClosedRange/upper)

## Relationships

### Conforms To

[`Escapable`](/documentation/Swift/Escapable)

[`Decodable`](/documentation/Swift/Decodable)

[`Encodable`](/documentation/Swift/Encodable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Copyable`](/documentation/Swift/Copyable)

[`PredicateExpression`](/documentation/Foundation/PredicateExpression)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`StandardPredicateExpression`](/documentation/Foundation/StandardPredicateExpression)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)