Manipulating two arrays in ruby way

Hi,

I have two arrays:

A = ["a", "b", "c", "d", ...]
B = ["1", "2", "3", "4", ...]

And I need to create new array C

C = ["a$1", "b$2", "c$3", "d$4", ...]

How so I do this in ruby way?

Thanks,

http://www.ruby-doc.org/core/classes/Array.html#M002221

"#{a}$#{b}"}
=> ["a$1", "b$2", "c$3", "d$4", "e$5"]

But you shouldn't use Capitals unless you intend to create a constant.

-Rob

Rob Biedenharn http://agileconsultingllc.com
Rob@AgileConsultingLLC.com

Check out the ruby docs for arrays and try it itself.

thank you so much!!