From: Robert Klemme Date: 2008-03-31T03:40:08+09:00 Subject: Re: inject's pathological case... On 30.03.2008 16:32, Robert Dober wrote: > I found this code in Ruby1.9 though > > if result.size > 0 and result.inject(false) {|k,s| s or k} > > that kind of code explains why inject has a bad reputation. That is quite a convoluted way to say result.any? Kind regards robert