Returns a new dictionary containing the keys of this dictionary with the values transformed by the given closure.
- Xcode 10.0+
- Swift Standard Library
A closure that transforms a value.
transformaccepts each value of the dictionary as its parameter and returns a transformed value of the same or of a different type.
A dictionary containing the keys and transformed values of this dictionary.
Complexity: O(n), where n is the length of the dictionary.