[Prototype-core] Re: Simplify working with Hash selections

2009-09-08 Thread Julian D.
Hi Allen, thanks for your reply. First, toHash would probably fit prototype's style more. True, I guess. But it sounds as if it's a method to generically convert an Array to a Hash. This is not what I was trying to solve. As I said, I often run into situations where I want to further process

[Prototype-core] Re: Simplify working with Hash selections

2009-09-08 Thread Tobie Langel
Hi, Julian. Thanks for your suggestions. There's indeed an issue when using some of Enumerable's methods with hashes. This should be addressed in n upcoming version of Prototype. the way to address this is simply to define those methods on Hash itself and make sure they return a hash instance