[m-dev.] For review: small change to map.m and tree234.m
Fergus Henderson
fjh at cs.mu.OZ.AU
Tue Sep 12 22:36:08 AEDT 2000
On 12-Sep-2000, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> On 12-Sep-2000, Ralph Becket <rbeck at microsoft.com> wrote:
> > Estimated hours taken: 1.1
> >
> > tree234__keys/2 returns its keys in sorted order. This is a very
> > handy property, but not documented. This change rectifies the
> > situation.
> ...
> > library/tree234.m:
> > Renamed tree234__keys as tree234__sorted_keys.
> > Added tree234__keys as a synonym.
>
> I think the best way to rectify the situation is simply to document
> that tree234__keys is guaranteed to return the keys in sorted order.
> (This is already documented in the source code for map.m, as it
> happens, but it should be documented in the proper place, namely in
> the interface for tree234.m.)
BTW, whatever solution is adopted for tree234__(sorted_)keys
should also be adopted for tree234__to_(sorted_)assoc_list.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3 | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list