unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Is there already an alist function which gets all matching elements,  not just the first?
@ 2022-10-05 10:00 Alan Mackenzie
  2022-10-05 10:45 ` Robert Pluim
  2022-10-05 18:16 ` Philip Kaludercic
  0 siblings, 2 replies; 6+ messages in thread
From: Alan Mackenzie @ 2022-10-05 10:00 UTC (permalink / raw)
  To: emacs-devel

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).



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-06 18:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-05 10:00 Is there already an alist function which gets all matching elements, not just the first? Alan Mackenzie
2022-10-05 10:45 ` Robert Pluim
2022-10-06 18:24   ` Alan Mackenzie
2022-10-05 18:16 ` Philip Kaludercic
2022-10-05 18:35   ` Lars Ingebrigtsen
2022-10-06 18:34   ` Alan Mackenzie

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).