From: gga Date: 2007-01-22T04:20:10+09:00 Subject: Re: Hash pairs at? dblack@wobblini.net wrote: > > It's not incorrect or buggy; that's the way Enumerable#find_all works. > In addition to being Enumerables themselves, arrays serve as the > common container for the results of lots of different Enumerables. > Sorry, David, but I disagree. It may not be buggy (as the bugginess is properly documented :), but it is certainly incorrect. Re-read my post. Hash.reject, which is also an Enumerable, DOES return a hash. Hash.find_all which is algorithmically the same as Hash.reject but without a negation, does not. Someone forgot to override find_all in the Hash case, but did remember to do it for Hash.reject. Or, if you are of the belief that indeed Enumerables should always return an array, Hash.reject was incorrectly overridden when it shouldn't have been.