[swift-users] extension Dictionary where Key == MyStructType

Dmitri Gribenko gribozavr at gmail.com
Wed Jan 27 15:41:22 CST 2016


On Wed, Jan 27, 2016 at 1:40 PM, Darren Mo <darren.mo at me.com> wrote:
> Wait but then I can’t use Dictionary methods inside of DictionaryType, right?

Just declare ones that you need in DictionaryType as requirements.

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