ClosedRange
E427890
ClosedRange is a Swift Standard Library generic type that represents a range of comparable values that includes both its lower and upper bounds.
All labels observed (1)
| Label | Occurrences |
|---|---|
| ClosedRange canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T4275684 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
Target entity: ClosedRange Context triple: [Swift Standard Library, includesType, ClosedRange]
-
A.
Boundary Ranges
Boundary Ranges are a major subrange of the Coast Mountains spanning the border region between southeastern Alaska and northwestern British Columbia, known for their rugged, glaciated peaks and remote wilderness.
-
B.
Interior Ranges
The Interior Ranges are a major mountainous region in southeastern British Columbia, Canada, encompassing much of the Columbia Mountains and forming part of the broader Interior System of the Canadian Cordillera.
-
C.
Bounds
Bounds is the maiden surname of Lillian Disney, the wife of Walt Disney and a key figure in the early Disney family history.
-
D.
Within
Within is an immersive media and virtual reality company known for producing and distributing high-quality VR experiences and storytelling content.
-
E.
Main Range Track
Main Range Track is a popular alpine walking trail in New South Wales, Australia, known for traversing the highest peaks of the Snowy Mountains and offering access to Mount Kosciuszko.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: ClosedRange Target entity description: ClosedRange is a Swift Standard Library generic type that represents a range of comparable values that includes both its lower and upper bounds.
-
A.
Boundary Ranges
Boundary Ranges are a major subrange of the Coast Mountains spanning the border region between southeastern Alaska and northwestern British Columbia, known for their rugged, glaciated peaks and remote wilderness.
-
B.
Interior Ranges
The Interior Ranges are a major mountainous region in southeastern British Columbia, Canada, encompassing much of the Columbia Mountains and forming part of the broader Interior System of the Canadian Cordillera.
-
C.
Bounds
Bounds is the maiden surname of Lillian Disney, the wife of Walt Disney and a key figure in the early Disney family history.
-
D.
Within
Within is an immersive media and virtual reality company known for producing and distributing high-quality VR experiences and storytelling content.
-
E.
Main Range Track
Main Range Track is a popular alpine walking trail in New South Wales, Australia, known for traversing the highest peaks of the Snowy Mountains and offering access to Mount Kosciuszko.
- F. None of above. chosen
Statements (49)
| Predicate | Object |
|---|---|
| instanceOf |
Swift generic type
ⓘ
Swift standard library type ⓘ |
| canBeEmpty | false ⓘ |
| canBeIteratedWithForIn | trueForStrideableBounds ⓘ |
| conformsTo |
Codable
ⓘ
CustomStringConvertible ⓘ Equatable NERFINISHED ⓘ Hashable ⓘ RangeExpression ⓘ |
| definedIn | Swift Standard Library NERFINISHED ⓘ |
| differenceFrom | Range is half-open and excludes upper bound ⓘ |
| exampleUsage |
if (1...10).contains(x) { ... }
ⓘ
let r: ClosedRange<Int> = 1...10 ⓘ switch x { case 1...5: ... default: break } ⓘ |
| genericConstraint | Bound : Comparable ⓘ |
| genericParameter | Bound ⓘ |
| hasInitializer |
init(_:) from Range<Bound>
ⓘ
init(uncheckedBounds: (lower: Bound, upper: Bound)) ⓘ |
| hasMethod |
clamped(to: ClosedRange<Bound>)
ⓘ
contains(_ element: Bound) ⓘ overlaps(_ other: ClosedRange<Bound>) ⓘ relative(to: Collection) ⓘ |
| hasOperatorSupport | pattern-matching operator ~= ⓘ |
| hasProperty |
lowerBound
ⓘ
upperBound ⓘ |
| includesLowerBound | true ⓘ |
| includesUpperBound | true ⓘ |
| introducedIn | Swift 3.0 ⓘ |
| isClosedRange | true ⓘ |
| isCollection | false ⓘ |
| isHalfOpen | false ⓘ |
| isReferenceType | false ⓘ |
| isSequence | false ⓘ |
| isStruct | true ⓘ |
| isValueSemantics | true ⓘ |
| language | Swift NERFINISHED ⓘ |
| module | Swift NERFINISHED ⓘ |
| relatedType |
PartialRangeFrom
ⓘ
PartialRangeThrough NERFINISHED ⓘ PartialRangeUpTo ⓘ Range ⓘ |
| represents | range of comparable values ⓘ |
| requires | lowerBound <= upperBound ⓘ |
| syntaxExample | 1...5 ⓘ |
| syntaxOperator | ... ⓘ |
| usedFor |
indexing collections
ⓘ
pattern matching in switch statements ⓘ range checks on Comparable values ⓘ slicing collections ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Subject: ClosedRange Description of subject: ClosedRange is a Swift Standard Library generic type that represents a range of comparable values that includes both its lower and upper bounds.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.