Dictionary

extension Dictionary
  • Add dictionary to self in-place.

    Declaration

    Swift

    public mutating func formUnion(_ dictionary: Dictionary)

    Parameters

    dictionary

    The dictionary to add to self

  • Return a dictionary containing the union of two dictionaries

    Declaration

    Swift

    public func union(_ dictionary: Dictionary) -> Dictionary

    Parameters

    dictionary

    The dictionary to add

    Return Value

    The combination of self and dictionary