From: Daniel Schierbeck Date: 2006-08-18T02:25:06+09:00 Subject: Re: Multiple arguments for Hash#delete Trans wrote: > Also, it really doesn't work to redefine delete() as you originally > suggested b/c you'd have to use the delete_values_at to ensure you get > an expected result, otherwise you're assuming preknowledge of how many > elemets are in the Hash. What do you mean? It would work fine for the purpose I've described. If you want to be sure you get an array when deleting multiple key-value pairs, use #delete_values_at, otherwise #delete is just fine. The nifty thing is that it adjusts its return value according to your need. If #delete should be altered, why should #[] and #[]= ? Cheers, Daniel