mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
1.4 KiB
1.4 KiB
PersistentCollections/PersistentDictionary
Topics
Collection Views
Keys-swift.structValues-swift.structkeys-swift.propertyvalues-swift.property
Creating a Dictionary
init()init(_:)-7jsheinit(_:)-8ls8pinit(uniqueKeysWithValues:)-65ax0init(uniqueKeysWithValues:)-5ok18init(_:uniquingKeysWith:)-7fuzuinit(_:uniquingKeysWith:)-4jee3init(grouping:by:)-8ntzvinit(grouping:by:)-7cu86init(keys:valueGenerator:)
Inspecting a Dictionary
isEmpty-65s43count-9cdqd
Accessing Keys and Values
subscript(_:)-g0oisubscript(_:default:)index(forKey:)
Adding or Updating Keys and Values
updateValue(_:forKey:)updateValue(forKey:with:)updateValue(forKey:default:with:)merge(_:uniquingKeysWith:)-853bfmerge(_:uniquingKeysWith:)-19xxnmerge(_:uniquingKeysWith:)-2oshmerging(_:uniquingKeysWith:)-2a7clmerging(_:uniquingKeysWith:)-1tq3emerging(_:uniquingKeysWith:)-2kjqq
Removing Keys and Values
removeValue(forKey:)remove(at:)
Non-mutating Dictionary Operations
updatingValue(_:forKey:)removingValue(forKey:)
Comparing Dictionaries
==(_:_:)
Transforming a Dictionary
filter(_:)mapValues(_:)compactMapValues(_:)