nobu / ruby-lang.org wrote:
> Hi,
> 
> At Thu, 17 Aug 2006 04:05:08 +0900,
> Daniel Schierbeck wrote in [ruby-talk:208833]:
>> Probably somewhat slower, but hey, it lets you do this
>>
>>    a, b, c = hsh.delete :a, :b, :c
> 
> What will be returned from `hsh.delete :a'?

The value of :a

   hsh = {:a => 1, :b => 2, :c => 3}
   hsh.delete :a, :b  #=> [1, 2]
   hsh.delete :c      #=> 3

that way, you can do this

   a    = hsh.delete :a
   b, c = hsh.delete :b, :c

Cool, right?


Cheers,
Daniel