Skip to content

Instantly share code, notes, and snippets.

@NachoSoto
Created September 28, 2015 20:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NachoSoto/13ed502dc1a1566557cd to your computer and use it in GitHub Desktop.
Save NachoSoto/13ed502dc1a1566557cd to your computer and use it in GitHub Desktop.
var testArray: [Int] = []
func modify(action: [Int] -> [Int]) {
testArray = action(testArray)
}
for _ in 0..<50 {
modify { array in
var array = array
array.append(0)
return array
}
}
@NachoSoto
Copy link
Author

This reproduces the same problem as http://openradar.me/22873620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment