If I have 3 or more arrays I want to combine into one, how do I do that in ruby? Would it be a variation on zip?
For example, I have
a = [1, 2, 3] b =
[a,b,c].transpose
is all you need. I prefer this to zip 50% of the time.
zip