[Swift-devel] Re: Associative arrays issue

Yadu Nand yadudoc1729 at gmail.com
Tue Jun 21 10:16:50 CDT 2011


> I've come across a very curious situation in which
> array["key"][1]  works while array["key"]["id1"] fails.

I've found that the problem is not from the arrays but from
the foreach construct I was using. Foreach expects an
int for the index, whereas in this case the index being a
string fails. I'm trying to fix this.

-- 
Thanks and Regards,
Yadu Nand B



More information about the Swift-devel mailing list