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 13:40:49 -0800

Emanuel Berg <moasen@zoho.com> wrote:
> Michael Heerdegen wrote:
>
>> And if you want to be cool:
>>
>> (seq-find (apply-partially #'< 1) '(1 1 3 1 4
>> 2)) ==> 3
>
> "And" if you want to be cool? I agree
> `apply-partially' is cooler but why is
> `seq-find' better than `cl-find-if'?
>
> Actually no one said it was better. The only
> thing said was that it was my style. Eheh.

I didn't say anything about your style. I pointed out that "if seq.el is
more your style" (in other words, "if you prefer seq.el"), seq-find also
works for this.

        John



reply via email to

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