[Swift-devel] New syntax for appending to arrays

Mihael Hategan hategan at mcs.anl.gov
Tue Jun 28 12:17:12 CDT 2011


On Tue, 2011-06-28 at 09:04 -0500, Michael Wilde wrote:

> int a[][[];
> int b[];
> b += 100;
> b += 200;
> a += b;  # <=== should this append a new array to a?

It should append something to a. And the type of a is int array which
matches b's type, so I don't see why not.




More information about the Swift-devel mailing list