Created
October 20, 2018 15:02
-
-
Save SrdjanCoric/e1deb84b14d6352cccb95b869ba49a4b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def spin_me(arr) | |
arr.each do |word| | |
word.reverse! | |
end | |
end | |
arr = ['hello', 'world'] | |
puts arr.object_id # 47264354160220 | |
puts spin_me(arr).object_id # 47264354160220 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment