From: "David A. Black" Date: 2003-12-05T23:45:36+09:00 Subject: Re: Dumb question to which I ought to know the answer by now Hi -- On Fri, 5 Dec 2003, Mark J. Reed wrote: > On Fri, Dec 05, 2003 at 11:03:07PM +0900, Austin Ziegler wrote: > > What you can do is: > > > > hash = nil; keys.zip(value) { |k, v| (hash ||= {})[k] = v } > > Now that is handy. I assume there's a historical reason for the > name 'zip'? Because I would never have thought it meant > "iterate in parallel with". :) It's more that the result is 'zipped', as the teeth of a zipper become interleaved when the zipper is zipped (one from the right, one from the left, one from the right...). David -- David A. Black dblack@wobblini.net