Map an algorithm over a dictionary. The algorithm is expected to take 2 arguments, a key from the existing dictionary and the value it corresponds to, and return a new value for the given key. If the algorithm returns null, the key is dropped.
Usage | Returns |
---|---|
Dictionary.map(baseAlgorithm) | Dictionary |
Argument | Type | Details |
---|---|---|
this: dictionary | Dictionary | |
baseAlgorithm | Algorithm |
Examples
JavaScript
// Your example goes here!
Python
# Your example goes here!