From: Levin Alexander Date: 2005-08-28T11:54:01+09:00 Subject: Re: Iterating over arrays in lockstep David Brady wrote: > What's the cleanup? Zipping the two arrays together would even be a > better solution, I think, thought it makes for uglier code like > "#{pair[0]}: #{pair[1]}". zip takes a block, so you could just do: array.zip(array.normalize) { |item, normalized_item| "..." } -Levin