timburks/nu — pull request #43 by andrewschleifer (2012-11-21 12:18:39+00:00)
Title: Add "map" to NSDictionary

If you send the map: message to a dictionary and it will apply the provided
callable to each value and return another dictionary with the results set for
the corresponding keys.

E.g.:

% (set origin (dict "alpha" 10 "bravo" 20))
<__NSDictionaryM:7f9224202c50>
% (set destination (origin map: (do (x y) (+ 1 y))))
<__NSDictionaryM:7f9224202f40>
% (destination "bravo")
21