Dictionary

extension Dictionary

Extension of Dictionary type values

  • Performs a transform on the each value of a dictionary

    Throws

    the type of OutValue if error occurs

    Declaration

    Swift

    public func map<OutValue>(transform: (Value) throws -> OutValue) rethrows -> [Key : OutValue]

    Parameters

    transform

    transform function to execute

    Return Value

    a dictionary