From: Jim Freeze Date: 2001-11-14T23:29:02+09:00 Subject: [ruby-talk:25178] Parallel array iteration Hi I've got a block here...It seems that I have seen that Ruby can do iteration over multiple arrays, but I have not been able to find it. For example, I would like to do something like the following: a=%w{a b c} b=[1,2,3] for x,y in a,b puts "#{x},#{y}" end a,1 b,2 c,3 Or even better yet, do the above without the 'for'. Yes, I can do this with each_index, but I would like to avoid de-indexing if I don't have to. Thanks ========================================================= Jim Freeze jim@freeze.org --------------------------------------------------------- Today is a fine day for Ruby programming. http://www.freeze.org =========================================================