P
Patrick Doyle
There has got to be a more elegant solution than this. Suppose I have
2 identical length arrays that I want to add together to produce a
third array. The best solution I've come up with is:
c = (0...a.size).map {|i| a + b}
Any suggestions?
--wpd
2 identical length arrays that I want to add together to produce a
third array. The best solution I've come up with is:
c = (0...a.size).map {|i| a + b}
Any suggestions?
--wpd