Dictionary
extension Dictionary
Extension of Dictionary
type values
-
Performs a transform on the each value of a dictionary
Throws
the type ofOutValue
if error occursDeclaration
Swift
public func map<OutValue>(transform: (Value) throws -> OutValue) rethrows -> [Key : OutValue]
Parameters
transform
transform function to execute
Return Value
a dictionary