From: David Alan Black Date: 2001-03-07T04:23:05+09:00 Subject: [ruby-talk:12170] Re: disassembling and reassembling a hash On Wed, 7 Mar 2001, Christoph Rippel wrote: > "Raja S." wrote in message > news:982srj$1p1$1@jetsam.uits.indiana.edu... > > > Question: since we have #to_a, #keys, #values --- all used to disassemble > a > > hash would it be useful to enhance Hash.new(key,values) in the > > core to assemble a hash from an array of keys and values? > > Shouldn't break anything existing (I think). > > I agree - you should post this as a RCR IMO (I would prefer a new class > function in Hash like Hash.make(keys,values)) See [ruby-talk:10912] and subsequent discussion -- also the RCR in [ruby-talk:11195], which is a little different but related (sort of a first step, perhaps). David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav