Created
July 15, 2014 16:14
-
-
Save Reprazent/8b3acfc9434afb85756c 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
=> ["one", "two"] | |
[14] pry(main)> arr1 = ["one", "two"] | |
=> ["one", "two"] | |
[15] pry(main)> arr2 = ["1", "2"] | |
=> ["1", "2"] | |
[16] pry(main)> arr1.each_with_index {|s, i| puts s + arr2[i]} | |
one1 | |
two2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment