Michael Schmarck wrote:
> yermej <yermej / gmail.com> wrote:
> 
>> I'll offer up an inject version (mostly for novelty's sake):
>> timing_given.each {|k, v| timing_given[k] = v.inject(Hash.new {|h, k|
>> h[k] = []}) {|acc, h| h.each {|k, v| acc[k] << v}; acc}}
> 
> Geez - did you use to code perl code? Because Perl code tends to
> be as unreadable and compact as yours :)
> 
> It works good, but I guess I've got some reading to do, to actually
> understand why it's working ;->
> 

Don't bother.  inject() is such an inefficient function it should never 
be used in ruby code.
-- 
Posted via http://www.ruby-forum.com/.