emacs-devel
[Top][All Lists]
Advanced

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

Re: map.el documentation


From: Robert Pluim
Subject: Re: map.el documentation
Date: Thu, 23 Jan 2025 18:26:08 +0100

>>>>> On Thu, 23 Jan 2025 17:16:12 +0200, Eli Zaretskii <eliz@gnu.org> said:
    >> 
    >> Then where do we put the explanations about things to look out for
    >> when using arrays with "map.el"?

    Eli> What things?

Arrays inherently canʼt grow or shrink, so if you do

(setq x (map-delete [a b c] 2))

then

(map-contains-key x 2) => t

which is counterintuitive for a data structure that purports to map
keys to values.

Robert
-- 



reply via email to

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