Skip to content

Instantly share code, notes, and snippets.

@Marahin
Created October 10, 2018 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Marahin/9128d81a1179293af515748da4ec20f2 to your computer and use it in GitHub Desktop.
Save Marahin/9128d81a1179293af515748da4ec20f2 to your computer and use it in GitHub Desktop.
[1] pry(main)> A = [1]
=> [1]
[2] pry(main)> A.object_id
=> 70348956801400
[3] pry(main)> A << 2
=> [1, 2]
[4] pry(main)> A
=> [1, 2]
[5] pry(main)> A.object_id
=> 70348956801400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment