[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Re: finding Hash subsets based on key value

Nuralanur

6/12/2005 11:07:00 PM

Hello,

maybe it's not the most elegant solution, but I'd create copies of the
original hash
for the subgroups and use the delete_if method for hashes to throw out
everything
that does not belong to group number n..

Best regards,

Axel