Skip to content

Instantly share code, notes, and snippets.

@nixsticks
Created December 6, 2013 01:33
Show Gist options
  • Save nixsticks/7817204 to your computer and use it in GitHub Desktop.
Save nixsticks/7817204 to your computer and use it in GitHub Desktop.
array1 = [0,1,2,3,4]
array2 = array1
array1[0] = 5
array1
# => [5,1,2,3,4]
array2
# => [5,1,2,3,4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment