From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: seq-some-p and nil Date: Wed, 23 Sep 2015 10:44:49 +0200 Message-ID: <87io71a5j2.fsf@fencepost.gnu.org> References: <1441295429.4215.0@smtp.gmail.com> <87vbbrl2ai.fsf@petton.fr> <1441907170.4222.0@smtp.gmail.com> <87y4gdylde.fsf@petton.fr> <1442942272.3270.1@smtp.gmail.com> <87mvwdedi4.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1442997917 16064 80.91.229.3 (23 Sep 2015 08:45:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Sep 2015 08:45:17 +0000 (UTC) Cc: Simen =?iso-8859-1?Q?Heggest=F8yl?= , emacs-devel@gnu.org To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 23 10:45:16 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zeffq-0003JD-Iu for ged-emacs-devel@m.gmane.org; Wed, 23 Sep 2015 10:45:10 +0200 Original-Received: from localhost ([::1]:46308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zeffp-00011Z-VI for ged-emacs-devel@m.gmane.org; Wed, 23 Sep 2015 04:45:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeffZ-00010t-1U for emacs-devel@gnu.org; Wed, 23 Sep 2015 04:44:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZeffY-0001YI-7L for emacs-devel@gnu.org; Wed, 23 Sep 2015 04:44:52 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZeffW-0001Xm-S2; Wed, 23 Sep 2015 04:44:50 -0400 Original-Received: from localhost ([127.0.0.1]:39965 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZeffW-0004QT-A6; Wed, 23 Sep 2015 04:44:50 -0400 Original-Received: by lola (Postfix, from userid 1000) id 9F0D0E300E; Wed, 23 Sep 2015 10:44:49 +0200 (CEST) In-Reply-To: <87mvwdedi4.fsf@petton.fr> (Nicolas Petton's message of "Wed, 23 Sep 2015 10:38:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:190278 Archived-At: Nicolas Petton writes: > Simen Heggest=F8yl 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)) ;; =3D> 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. --=20 David Kastrup