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

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

Re: return first element in list with certain property


From: Emanuel Berg
Subject: Re: return first element in list with certain property
Date: Tue, 06 Mar 2018 09:53:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Robert L. wrote:

>> cl-find-if
>
> (defun list-find-if (pred xs)
>   (while (and (consp xs) (not (funcall pred (car xs))))
>     (pop xs))
>   (car xs))

OK, but without having tested it, is there any
reason to favor it to `cl-find-if'?

-- 
underground experts united
http://user.it.uu.se/~embe8573


reply via email to

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