[Top][All Lists]

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

Re: seq-some-p and nil

From: Mark Oteiza
Subject: Re: seq-some-p and nil
Date: Sat, 05 Sep 2015 21:17:46 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Nicolas Petton <address@hidden> writes:

> John Mastro <address@hidden> writes:
>> Artur Malabarba <address@hidden> wrote:
>>> Agreed, and that's not the only case.
>>> Both `seq-some-p' and `seq-contains-p' are named as predicates but do
>>> not behave as predicates.
>> I think `seq-some-p' (or its successor) would also be more useful if it
>> promised to return the first matching element (the docstring says "any
>> element", though in practice it does return the first).
> Indeed, I agree.  I will update its docstring.

I also liked seq-some-p returning the matching element over cl-some
returning the value returned by the predicate.

Perhaps there could be a function in seq that preserves this behavior.

reply via email to

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