[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: seq-some-p and nil
From: |
David Kastrup |
Subject: |
Re: seq-some-p and nil |
Date: |
Wed, 23 Sep 2015 10:44:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Nicolas Petton <address@hidden> writes:
> Simen Heggestøyl <address@hidden> writes:
>
> Hi Simen,
>
>> Ah, sorry, I should have been clearer. What I meant was that it could
>> guarantee to return the *first* non-nil value that resulted from
>> applying the predicate, like in CL.
>>
>> So for instance, (seq-some #'1+ '(1 3 5)) could guarantee to return 2,
>> not 4 or 6.
>
> You lost me. Isn't that exactly what `seq-some' does?
>
> (seq-some #'1+ '(1 3 5)) ;; => 2
>
> Or did you mean that the documentation of `seq-some' should state that
> `seq-some' returns the first non-nil value?
Yes, I think that's what he wants in order to have some reassurance
against the "I've altered the semantics. Pray I don't alter them any
further." phenomenon.
--
David Kastrup
Re: seq-some-p and nil, Nicolas Petton, 2015/09/03
- Re: seq-some-p and nil, Simen Heggestøyl, 2015/09/10
- Re: seq-some-p and nil, Nicolas Petton, 2015/09/10
- Re: seq-some-p and nil, Simen Heggestøyl, 2015/09/22
- Re: seq-some-p and nil, Nicolas Petton, 2015/09/23
- Re: seq-some-p and nil,
David Kastrup <=
- Re: seq-some-p and nil, Simen Heggestøyl, 2015/09/23
- Re: seq-some-p and nil, Nicolas Petton, 2015/09/23
Re: seq-some-p and nil, Nicolas Petton, 2015/09/29