[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Enumerator for Hash

Ryan Hinton

5/23/2007 6:18:00 PM

On May 23, 12:18 pm, Robert Klemme <shortcut...@googlemail.com> wrote:
> ...
>
> You could wrap your keys in a custom class. For added convenience you
> could also wrap Hash with another class which wraps keys on insertion
> and unwraps on reading.
> ...
>
> In that case I'd probably rather do this:
> ...

And thank you for the excellent ideas. Manually generating the key
seems rather obvious now that you mention it. I had wondered if there
was something more useful I could do with the values, but I had not
considered manipulating the keys. Thanks again!

- Ryan