From: "DanDiebolt.exe" Date: 2008-09-11T01:49:02+09:00 Subject: Re: How to operate on 2 arrays simultaneously? Instead of .zip I use .transpose as it is easier to remember and makes more sense mathematically irb(main):078:0> a=[1,2,3] => [1, 2, 3] irb(main):079:0> b=%w(x y z) => ["x", "y", "z"] irb(main):080:0> [a,b].transpose => [[1, "x"], [2, "y"], [3, "z"]] irb(main):081:0> a.zip(b) => [[1, "x"], [2, "y"], [3, "z"]]