[Top][All Lists]

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

Re: filter-list

From: Grant Rettke
Subject: Re: filter-list
Date: Wed, 16 Apr 2014 21:13:27 -0500
Grant Rettke | AAAS, ACM, FSF, IEEE, Sigma Xi
address@hidden |
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

On Wed, Apr 16, 2014 at 5:01 PM, Michael Heerdegen
<address@hidden> wrote:
> 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]