[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.
- seq-some-p and nil, Simen Heggestøyl, 2015/09/03
- Re: seq-some-p and nil, Stefan Monnier, 2015/09/03
- Re: seq-some-p and nil, Artur Malabarba, 2015/09/03
- Re: seq-some-p and nil, Nicolas Petton, 2015/09/03
- Re: seq-some-p and nil,
Mark Oteiza <=
- Re: seq-some-p and nil, Nicolas Petton, 2015/09/06
- Re: seq-some-p and nil, Stefan Monnier, 2015/09/06
- Re: seq-some-p and nil, Nicolas Petton, 2015/09/07
- RE: seq-some-p and nil, Drew Adams, 2015/09/07
- Re: seq-some-p and nil, Stefan Monnier, 2015/09/07
- Re: seq-some-p and nil, Mark Oteiza, 2015/09/07
- RE: seq-some-p and nil, Drew Adams, 2015/09/07
- Re: seq-some-p and nil, Nicolas Petton, 2015/09/07
- Re: seq-some-p and nil, Stefan Monnier, 2015/09/07
- Re: seq-some-p and nil, Nicolas Petton, 2015/09/08