all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* filter-list
@ 2014-04-16 22:01 Michael Heerdegen
  2014-04-17  2:13 ` filter-list Grant Rettke
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Heerdegen @ 2014-04-16 22:01 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

Is there something like

| (defun filter-list (pred list)
|   "Make a list of all LIST elements satisfying PRED."
|   (let ((deleted '#:deleted))
|     (delete deleted
|             (mapcar (lambda (el) (if (funcall pred el) el deleted))
|                     list))))

existing in Emacs Lisp?  I can't find it, but I would expect such
an elementary function would be built in.  Do I miss something?


Thanks,

Michael.




^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <mailman.19722.1397685716.10748.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2014-04-17 12:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-16 22:01 filter-list Michael Heerdegen
2014-04-17  2:13 ` filter-list Grant Rettke
2014-04-17 12:33   ` filter-list Michael Heerdegen
     [not found] <mailman.19722.1397685716.10748.help-gnu-emacs@gnu.org>
2014-04-17  0:54 ` filter-list Stefan Monnier
2014-04-17 12:28   ` filter-list Michael Heerdegen

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.