I\'m trying to wrap my head around initialising empty arrays in Swift.
For an array of strings it\'s pretty straight forward :
var myStringArray: String
You can no longer use element concatenation.
class Image {} Image i1 Image i2 var x = [Image]() x += i1 // will not work (adding an element is ambiguous) x += [i1] // this will work (concatenate an array to an array with the same elements) x += [i1, i2] // also good