C
Chris Chris
Hi,
just started working with Ruby (and, well, programming in general ...
I have two arrays in Ruby that I'd like to merge:
Array 1:
["7.99", "6.99", "10.99", "5.97"]
Array 2:
[["A", "5"], ["B", "5"], ["C", "4"], ["D", "5"]]
I want to merge those two arrays and as a result get
Array 3:
[["A", "5", "7.99"], ["B", "5", "6.99"], ["C", "4", "10.99"], ["D", "5",
"5.97"]]
Thank you for your help!
Cheers,
Chris
just started working with Ruby (and, well, programming in general ...
I have two arrays in Ruby that I'd like to merge:
Array 1:
["7.99", "6.99", "10.99", "5.97"]
Array 2:
[["A", "5"], ["B", "5"], ["C", "4"], ["D", "5"]]
I want to merge those two arrays and as a result get
Array 3:
[["A", "5", "7.99"], ["B", "5", "6.99"], ["C", "4", "10.99"], ["D", "5",
"5.97"]]
Thank you for your help!
Cheers,
Chris