-
-
Save gabrie30/55481c98287782c7702a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
original = [[1],[2],[3]] | |
copy = original.dup | |
copy[2] << "what_the?" | |
p original #=> [[1], [2], [3, "what_the?"]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment