In Swift arrays have a special behaviour, but why here does arr1 contain two times "item 1" whereas arr2 contains it only once ?
What does defining arr1 as an instance variable change here (versus defining arr2 as a local variable) ?
Update: I'm using Xcode 6.0.1