From: Simon Strandgaard Date: 2005-10-20T07:14:48+09:00 Subject: Re: Searching for a name On 10/19/05, Brian Schr�der wrote: [snip] > q.delete_min #=> ["0", 0] > q.delete_min_return_key #=> "1" > q.delete_min_return_priority #=> 2 > > and wonder how I could call the last two methods. I want these, > because delete_min returns nil if the queue is empty, and I can't > index nil. So for some code these additional functions are quite > convenient. Array#shift is a nice name. delete_min -> shift delete_min_return_key -> shift_key delete_min_return_priority -> shift_prio -- Simon Strandgaard