ruby - How to add first element of an array to first element of another array -


i have bellow [sic] 2 arrays:

first_name = ["prabhu" ,"raghu" , "satish"] second_name = ["chaitanya", "varma", "venkey"] 

i want print following output:

full_name = ["prabhu chaitanya","raghu varma", "satish venkey"] 

you can try following:

first_name.zip(second_name).map{ |x| x.join(' ')}