On Dec 11, 2014, at 3:24 PM, Daniel Blakemore <dblakem...@pixio.com> wrote:
> 
> If I do this, however, it breaks:
> var arr2 = [Array](count:6, repeatedValue:[Color](count:8, repeatedValue:
> Color()))

[Array] is syntactic sugar for Array<Array>.  It is not a complete type.
It is an array of arrays of ????

Let the type inference work for you.  Try it this way and see if it generates
what you desire.

var arr2 = Array(count:6, repeatedValue:Array(count:8, repeatedValue:Color()))

Marc


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to