Files
swift-collections/Sources/PersistentCollections/PersistentCollections.docc/Extensions/PersistentDictionary.md
T

1.4 KiB

PersistentCollections/PersistentDictionary

Topics

Collection Views

  • Keys-swift.struct
  • Values-swift.struct
  • keys-swift.property
  • values-swift.property

Creating a Dictionary

  • init()
  • init(_:)-7jshe
  • init(_:)-8ls8p
  • init(uniqueKeysWithValues:)-65ax0
  • init(uniqueKeysWithValues:)-5ok18
  • init(_:uniquingKeysWith:)-7fuzu
  • init(_:uniquingKeysWith:)-4jee3
  • init(grouping:by:)-8ntzv
  • init(grouping:by:)-7cu86
  • init(keys:valueGenerator:)

Inspecting a Dictionary

  • isEmpty-65s43
  • count-9cdqd

Accessing Keys and Values

  • subscript(_:)-g0oi
  • subscript(_:default:)
  • index(forKey:)

Adding or Updating Keys and Values

  • updateValue(_:forKey:)
  • updateValue(forKey:with:)
  • updateValue(forKey:default:with:)
  • merge(_:uniquingKeysWith:)-853bf
  • merge(_:uniquingKeysWith:)-19xxn
  • merge(_:uniquingKeysWith:)-2osh
  • merging(_:uniquingKeysWith:)-2a7cl
  • merging(_:uniquingKeysWith:)-1tq3e
  • merging(_: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(_:)