Displaying 1 result from an estimated 1 matches for "please_work".
2013 Aug 29
10
Concatenate two arrays
...to
create the correct number of arguments, so when the method is called
back it gives me my array_sum.
I have been trying many different variations, but it has now come down
to I am not sure if my defining is wrong or my code in the method is
incorrect.
I want to say it is something such as
def please_work()
array1=[1,2,3]
array2=[4,5,6]
array_sum=array1+array2
end
puts please_work(array_sum)
i ended up fiddling around and getting it to output [1,2,3,4,5,6], but
my syntex said i did not have the correct number of arguments. Also,
sometimes i get array_sum is not a defined variable. If I am defining...