Dictionary (Swift)
E770631
Dictionary (Swift) is a generic key-value collection type in the Swift programming language that stores associations between unique keys and their corresponding values.
Statements (51)
| Predicate | Object |
|---|---|
| instanceOf |
Swift standard library type
ⓘ
generic collection type ⓘ key-value collection ⓘ |
| accessComplexity | average O(1) lookup by key ⓘ |
| conformsTo |
Collection
ⓘ
CustomDebugStringConvertible NERFINISHED ⓘ CustomStringConvertible NERFINISHED ⓘ ExpressibleByDictionaryLiteral NERFINISHED ⓘ MutableCollection ⓘ RandomAccessCollection NERFINISHED ⓘ Sequence ⓘ |
| defaultImplementationDetail | hash table based ⓘ |
| definedInLanguage | Swift NERFINISHED ⓘ |
| documentationURL | https://developer.apple.com/documentation/swift/dictionary ⓘ |
| genericParameter |
Key
ⓘ
Value ⓘ |
| hasInitializer |
init()
ⓘ
init(grouping:by:) ⓘ init(minimumCapacity: Int) ⓘ init(uniqueKeysWithValues:) ⓘ |
| hasMethod |
compactMapValues(_:)
ⓘ
filter(_:) ⓘ mapValues(_:) ⓘ merge(_:uniquingKeysWith:) ⓘ merging(_:uniquingKeysWith:) ⓘ removeValue(forKey:) ⓘ updateValue(_:forKey:) ⓘ |
| hasProperty |
count
ⓘ
isEmpty ⓘ keys ⓘ values ⓘ |
| introducedInVersion | Swift 1.0 ⓘ |
| keyRequirement | Key must be Hashable ⓘ |
| keyUniqueness | keys are unique ⓘ |
| literalSyntax | [key: value, key2: value2] ⓘ |
| module | Swift Standard Library NERFINISHED ⓘ |
| mutationComplexity | average O(1) insertion by key ⓘ |
| namespace | global in Swift module ⓘ |
| ordering | does not guarantee key order ⓘ |
| relatedType |
Array (Swift)
ⓘ
Set (Swift) NERFINISHED ⓘ |
| requiresKeyConformance | Hashable ⓘ |
| stores | associations between unique keys and values ⓘ |
| supportsMutation |
insertion
GENERATED
ⓘ
removal GENERATED ⓘ update GENERATED ⓘ |
| supportsSubscript |
subscript(key: Key) -> Value?
GENERATED
ⓘ
subscript(key: Key, default defaultValue: @autoclosure () -> Value) -> Value GENERATED ⓘ |
| syntax |
Dictionary<Key, Value>
ⓘ
[Key: Value] ⓘ |
| valueMultiplicity | values may be duplicated ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.