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

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

filter-list


From: Michael Heerdegen
Subject: filter-list
Date: Thu, 17 Apr 2014 00:01:24 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (gnu/linux)

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.




reply via email to

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