[Swift-devel] New syntax for appending to arrays
Yadu Nand
yadudoc1729 at gmail.com
Tue Jun 28 09:17:37 CDT 2011
>> Please note that, we still need to make sure that when we can
>> only append to an array, so to associate keys and multiple
>> values, (i think) we will need two(or more) dimensional arrays.
>
> yes. but there are already multi-dimensional arrays in swift.
>
> also, a one dimensional array should still work, like this:
>
> int a[];
> a += 232;
> a += 111;
Yes. This works fine. I checked with the following piece of code
int array[ ];
array += 10;
array += 20;
array += 30;
foreach value, index in array {
trace ( array[index] );
}
--
Thanks and Regards,
Yadu Nand B
More information about the Swift-devel
mailing list