[Top][All Lists]

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

Re: seq-some-p and nil

From: Nicolas Petton
Subject: Re: seq-some-p and nil
Date: Wed, 23 Sep 2015 10:38:59 +0200
User-agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/ (x86_64-unknown-linux-gnu)

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?


Attachment: signature.asc
Description: PGP signature

reply via email to

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