Subject: Re: What is the best way to iterate through two containers of the same length?
From: "gordon" <gthiesfeld sbcglobal.net>
Date: Tue, 7 Mar 2006 06:58:40 +0900
References: 182802
In-reply-to: 182802
How about:
foo = ["foo","foo"]
bar = ["bar","bar"]
foo.zip(bar).each do |a,b|
puts "#{a} #{b}"
end