Skip to content

Instantly share code, notes, and snippets.

@josephlord
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save josephlord/f26507dffcca7f02b80a to your computer and use it in GitHub Desktop.

Select an option

Save josephlord/f26507dffcca7f02b80a to your computer and use it in GitHub Desktop.
Swift Arrays Beta 3 (basics)
var a = [1,2,3]
var b = a
a == b // true
a === b // true
b[0] = 10
a // [1,2,3]
b // [10,2,3]
b[0] = 1
a == b // true
a === b // false
a // [1,2,3]
b // [1,2,3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment