[m-dev.] for review: two useful additions to map.m

Robert Jeschofnik rejj at students.cs.mu.oz.au
Tue May 30 00:49:22 AEST 2000


On 29-May-2000, Ralph Becket <rbeck at microsoft.com> wrote:
> 
> library/map.m
>         Added func map__add_to_list(Map, K, V).  V is consed onto the
>         list value mapped to by K in Map (if such a mapping exists)
>         or the mapping for K is set as [V] (otherwise).
> 
>         Added func map__add_to_set(Map, K, V) which is similar to the
>         above, except that the value type for the mapping is set/1
>         and the corresponding operations are set__insert/2 and
>         set__make_singleton_list/1 respectively.

Would it be a good idea to make pred versions of these, too?

Rob
--------------------------------------------------------------------------
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