Skip to content

Instantly share code, notes, and snippets.

@Reprazent
Created July 15, 2014 16:14
Show Gist options
  • Save Reprazent/8b3acfc9434afb85756c to your computer and use it in GitHub Desktop.
Save Reprazent/8b3acfc9434afb85756c to your computer and use it in GitHub Desktop.
=> ["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