[swift-users] Why can I not filter or map a dictionary to another dictionary?

Rick Mann rmann at latencyzero.com
Wed Oct 26 19:12:54 CDT 2016


It seems fairly natural to want to do this:

let bigDictionary = ...
let smallerDictionary = bigDictionary.filter { key, value in <some test returning Bool> }

Similarly, it seems natural to want to map this way.

Am I overlooking something?

-- 
Rick Mann
rmann at latencyzero.com




More information about the swift-users mailing list