From: "Brian Schröder" Date: 2005-10-19T19:52:35+09:00 Subject: Re: Searching for a name On 19/10/05, Robert Klemme wrote: > Brian Schr�der wrote: > > On 19/10/05, Robert Klemme wrote: > >> Brian Schr�der wrote: > >>> [snip] > >> > >> How about > >> #deq > >> #deq_key > >> #deq_prio > >> > >> ? > >> > >> Kind regards > >> > >> robert > >> > > > > Hello Robert, > > > > I assume you use deq as a short for dequeue. In this case I have the > > problem that the name > > dequeue_key would somehow imply that the key was removed while > > deq_prio would imply removing the priority. This does not make sense > > if one knows the datastructure, but I'm not too happy with it. > > OTOH: if you know the data structure, you know that the prio is not > removed. :-) Sorry if I was not clear, english is not my native language. I tried to imply exactly what you said. > Does this method return the prio of the last removed element > or the current min prio? "delete_min_return_priority" returns the priority of the element that was removed by calling this method. > > Kind regards > > robert > best regards, Brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/