From: Patrick Doyle Date: 2008-09-11T00:42:42+09:00 Subject: How to operate on 2 arrays simultaneously? 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[i] + b[i]} Any suggestions? --wpd