[m-rev.] Proposed changes to pqueue.m
jfischer at opturion.com
Tue Nov 19 03:43:53 AEDT 2013
On Tue, 19 Nov 2013, Michael Richter wrote:
> On 19 November 2013 00:11, Michael Richter <ttmrichter at gmail.com> wrote:
> I suggest having three versions:
> - peek, which returns both the key and the value
> - peek_key, which returns the smallest key
> - peek_value, which returns the value corresponding to the smallest key
> I'll implement it that way tomorrow.
> And then I says to myself "never put off to tomorrow what takes five minutes tonight". Done.
> Six predicates: peek, peek_key, peek_value, det_peek, det_peek_key, det_peek_value.
> Two functions: det_peek_key, det_peek_value.
I would be inclined not to have predicate versions of
More information about the reviews