From: Ron Jeffries Date: 2002-03-14T01:00:01+09:00 Subject: process two arrays pairwise? Is there somewhere in Ruby a way to process the elements of two arrays (of equal size), pairwise? I'd like something better than this, if there is something: array1.each_with_index { | a1, i | a2 = array2[i] # process a1, a2 } preferably something that doesn't mind if the collections aren't indexable? Thanks, Ronald E Jeffries http://www.XProgramming.com http://www.objectmentor.com I'm giving the best advice I have. You get to decide whether it's true for you.