Set (Swift)
E820426
Set (Swift) is a generic, unordered collection type in the Swift standard library that stores unique values of the same type with efficient membership and set-operation support.
All labels observed (1)
| Label | Occurrences |
|---|---|
| Set (Swift) canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T9761631 — 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: Set (Swift) Context triple: [NSSet, bridgedTo, Set (Swift)]
-
A.
Set
Set is an ancient Egyptian god associated primarily with chaos, storms, and disorder, often depicted as the adversary of his brother Osiris and the rival of Horus.
-
B.
NSSet
NSSet is an Objective-C collection class that represents an unordered, unique set of objects, commonly used in Cocoa and Cocoa Touch frameworks.
-
C.
Mutable Set (track)
"Mutable Set (track)" is a song by the American singer-songwriter Blake Mills from his critically acclaimed 2020 album "Mutable Set."
-
D.
SETS
SETS is the London Stock Exchange’s central electronic order book system used for automated trading of the most liquid UK securities.
-
E.
NSArray
NSArray is an Objective-C class in Apple’s Foundation framework that represents an ordered, immutable collection of objects.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: Set (Swift) Target entity description: Set (Swift) is a generic, unordered collection type in the Swift standard library that stores unique values of the same type with efficient membership and set-operation support.
-
A.
Set
Set is an ancient Egyptian god associated primarily with chaos, storms, and disorder, often depicted as the adversary of his brother Osiris and the rival of Horus.
-
B.
NSSet
NSSet is an Objective-C collection class that represents an unordered, unique set of objects, commonly used in Cocoa and Cocoa Touch frameworks.
-
C.
Mutable Set (track)
"Mutable Set (track)" is a song by the American singer-songwriter Blake Mills from his critically acclaimed 2020 album "Mutable Set."
-
D.
SETS
SETS is the London Stock Exchange’s central electronic order book system used for automated trading of the most liquid UK securities.
-
E.
NSArray
NSArray is an Objective-C class in Apple’s Foundation framework that represents an ordered, immutable collection of objects.
- F. None of above. chosen
Statements (54)
| Predicate | Object |
|---|---|
| instanceOf |
generic collection type
ⓘ
struct ⓘ value type ⓘ |
| allowsDuplicates | false ⓘ |
| conformsTo |
Collection
ⓘ
CustomDebugStringConvertible NERFINISHED ⓘ CustomStringConvertible NERFINISHED ⓘ Decodable ⓘ Encodable ⓘ ExpressibleByArrayLiteral NERFINISHED ⓘ Hashable ⓘ Sequence ⓘ SetAlgebra NERFINISHED ⓘ |
| defaultInitializer | init() ⓘ |
| definedIn | Swift Standard Library NERFINISHED ⓘ |
| elementConstraint | Hashable ⓘ |
| genericParameter | Element ⓘ |
| hasProperty |
Hash-based storage
ⓘ
amortized O(1) insertions ⓘ amortized O(1) membership checks ⓘ amortized O(1) removals ⓘ |
| initializer |
init(_:) from a sequence
ⓘ
init(arrayLiteral:) via array literal syntax ⓘ |
| introducedIn | Swift 1.0 ⓘ |
| isCopyOnWrite | true ⓘ |
| isOrdered | false ⓘ |
| isValueSemantics | true ⓘ |
| iterationOrder | unspecified ⓘ |
| literalSyntaxExample | let s: Set<Int> = [1, 2, 3] ⓘ |
| module | Swift NERFINISHED ⓘ |
| mutatingMethod |
insert(_:) -> (inserted: Bool, memberAfterInsert: Element)
ⓘ
remove(_:) -> Element? ⓘ update(with:) -> Element? ⓘ |
| property |
count: Int
ⓘ
first: Element? ⓘ isEmpty: Bool ⓘ |
| stores | unique values ⓘ |
| subscriptAccess | no index-based subscript ⓘ |
| supportsOperation |
contains
ⓘ
insert ⓘ intersection ⓘ isDisjoint(with:) ⓘ isStrictSubset(of:) ⓘ isStrictSuperset(of:) ⓘ isSubset(of:) ⓘ isSuperset(of:) ⓘ membership test ⓘ remove ⓘ subtracting ⓘ symmetricDifference ⓘ union ⓘ |
| useCase |
ensuring uniqueness in collections
ⓘ
modeling mathematical sets ⓘ testing membership efficiently ⓘ |
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: Set (Swift) Description of subject: Set (Swift) is a generic, unordered collection type in the Swift standard library that stores unique values of the same type with efficient membership and set-operation support.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.