[swift-users] Mapping a Dictionary to a Dictionary?

Dmitri Gribenko gribozavr at gmail.com
Mon Aug 29 15:57:29 CDT 2016


On Mon, Aug 29, 2016 at 11:36 PM, Jens Alfke via swift-users
<swift-users at swift.org> wrote:
> I may be missing something obvious, but I can’t find a library function that maps a Dictionary to another Dictionary, transforming the keys and/or values. The only method I’ve found is the regular map(), which results in an Array. Does this just not exist in the standard library?

Yes, this functionality does not exist.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-users mailing list