[swift-evolution] map-like operation that returns a dictionary
Kenny Leung
kenny_leung at pobox.com
Sun Jan 10 11:50:32 CST 2016
Hi All.
I find that instead of using map() on arrays, I more often use an operation that returns a dictionary from an array. A common case is fetching an array of data, then creating a local cache of it indexed by ID.
Is there a name for this operation? Is this something that others would like to see added to the standard library?
-Kenny
More information about the swift-evolution
mailing list