Swift arrays have a special behavior, but why does arr1 contain two times โelement 1โ, while arr2 contains it only once?
What defines arr1 as an instance variable here (as opposed to defining arr2 as a local variable)?
Update: I am using Xcode 6.0.1
I can reliably reproduce this result in Xcode 6.0.1:
But not in Xcode 6.1 GM:
It seems that a bug has been fixed.
As a temporary workaround, this works in Xcode 6.0.1:
Source: https://habr.com/ru/post/976357/More articles:Get coordinates of two different places on HTML canvas - javascriptDomain error = com.alamofire.error.serialization.response Code = -1011 "Request error: invalid request (400) - jsonHK2 annotations are not processed - java"a ++ + i" equals "(a ++) + i" - cFixed columns and heading using CSS / Angular JS - htmlHow to disable inertial scrolling on the body for iOS browsers? - javascriptHow to use IResourceChangeListener to detect file rename and dynamically change EditorPart name? - eclipseError: request failed: request with bad request (400) via afnetworking in swift - apiHow to add a horizontal scrollbar to specific columns of an HTML table without using a table in a table in the following scenario? - htmlFacebook Custom Audience Pixel at SinglePageApplication SPA - angularjsAll Articles