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: John Mastro
Subject: Re: return first element in list with certain property
Date: Mon, 20 Nov 2017 10:51:27 -0800

Emanuel Berg <moasen@zoho.com> wrote:
> Philipp Stephani wrote:
>> cl-find-if
>
> That's it 100%

Or, if seq.el is more your style:

(seq-find (lambda (e) (> e 1)) '(1 1 3 1 4 2))
;=> 3

        John



reply via email to

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