bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#50927: Considering only entries with unique keys in map.el?


From: Lars Ingebrigtsen
Subject: bug#50927: Considering only entries with unique keys in map.el?
Date: Fri, 01 Oct 2021 14:48:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Okamsn <okamsn@protonmail.com> writes:

> Some kinds of maps, such as alists and plists, can contain duplicate
> keys.  These duplicates are effectively ignored in functions like
> `map-elt`, but are not ignored in functions like `map-do` or `map-length`.

As others have noted, this is part of how alists (etc) work, and we
can't change that -- it would break tons of code.

If you don't want duplicate keys, then you should only use functions
like `map-insert' etc to work on the maps.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]