Dictionary

extension Dictionary
extension Dictionary where Key == String, Value == String?
  • Returns the combination with the other dictionary.

    If a key exists in both, the value in other wins and is used./

    Declaration

    Swift

    public func combine(_ other: Dictionary) -> Dictionary

    Parameters

    other

    Another dictionary with the same type which should merged into a new one

    Return Value

    New dictionary holding the merge result of self and other

Available where Key == String, Value == String?

  • Returns a new dictionary whithout nil values.

    Declaration

    Swift

    public var trimmingNullValues: [String : String] { get }