On 8/18/07, Yukihiro Matsumoto <matz / ruby-lang.org> wrote: > Hi, > > In message "Re: Bug in select?" > on Sat, 18 Aug 2007 19:48:18 +0900, "Robert Dober" <robert.dober / gmail.com> writes: > > |I was just testing Labrador with JRuby when JRuby failed a test MR > |passed, after some investigation I do have the feeling that JRuby is > |correct and MR is not. > > Hash#select invokes > > yield key, value > > others do > > yield [key, value] > > It's intended. I thought it's more useful for the hash block. > > matz. > Good to know, especially because I believe JRuby wants to be 100% compatible. Given that the behavior above is defined as correct in your Ruby by yourself ;) I will just drop them a line, it's up to them if they want to follow suit... BTW I agree 100% with you, it is more useful, but it would be more useful for the inherited methods too I guess, like Enumerable#map That would be lots of work of course to redefine them in Hash :(. Cheers Robert -- I'm an atheist and that's it. I believe there's nothing we can know except that we should be kind to each other and do what we can for other people. -- Katharine Hepburn