emacs-devel
[Top][All Lists]
Advanced

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

Is there already an alist function which gets all matching elements, no


From: Alan Mackenzie
Subject: Is there already an alist function which gets all matching elements, not just the first?
Date: Wed, 5 Oct 2022 10:00:10 +0000

Hello, Emacs.

I want to be able to get all matching elements from an alist (thinking
about extending imenu).  Something like

    (assoc-all key list)

which would return a list of matches.  After all, we have functions
which _delete_ all matches from an alist.

Does such a function already exist, perhaps in cl-*.el?

Thanks!

-- 
Alan Mackenzie (Nuremberg, Germany).



reply via email to

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