A
Ari Brown
I can't remember who asked this a while ago, but while I was
stumbling through my Programming Ruby book, I found a nice method in
array that will instantly do the trick: Array#concat
a = [1, 2]
b = [3, 4]
a.concat(b) #=> [1, 2, 3, 4]
I can't remember if someone already posted this solution, but if not,
here it is.
Ari
-------------------------------------------|
Nietzsche is my copilot
stumbling through my Programming Ruby book, I found a nice method in
array that will instantly do the trick: Array#concat
a = [1, 2]
b = [3, 4]
a.concat(b) #=> [1, 2, 3, 4]
I can't remember if someone already posted this solution, but if not,
here it is.
Ari
-------------------------------------------|
Nietzsche is my copilot