In Swift Programming Language, it says:
“all of the basic types in Swift—integers, floating-point numbers, Booleans, strings, arrays and dictio
Array in swift are value type when i try the following code:
var myArray1 = [1, 2, 3] var myArray2 = myArray1 myArray2 += 4; println(myArray1); println(myArray2);
It print different value for myArray1 and my Array2. If they share same reference the value must be same.