From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: seq-some-p and nil Date: Wed, 23 Sep 2015 10:38:59 +0200 Message-ID: <87mvwdedi4.fsf@petton.fr> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1442997567 10411 80.91.229.3 (23 Sep 2015 08:39:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Sep 2015 08:39:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Simen =?utf-8?Q?Heggest=C3=B8yl?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 23 10:39:13 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 1Zefa4-0005Pi-4X for ged-emacs-devel@m.gmane.org; Wed, 23 Sep 2015 10:39:12 +0200 Original-Received: from localhost ([::1]:46268 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zefa3-0006sx-EW for ged-emacs-devel@m.gmane.org; Wed, 23 Sep 2015 04:39:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZefZz-0006sg-Kn for emacs-devel@gnu.org; Wed, 23 Sep 2015 04:39:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZefZv-00071t-L6 for emacs-devel@gnu.org; Wed, 23 Sep 2015 04:39:07 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:58097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZefZv-00071K-HW for emacs-devel@gnu.org; Wed, 23 Sep 2015 04:39:03 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 0C70F20E2B for ; Wed, 23 Sep 2015 04:39:02 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 23 Sep 2015 04:39:02 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=jKk0rXjIiYO9o/aOdNDwdm35Gfg=; b=b4l13 SLM2kpH1H4gR77/wUianiviuNeJDJezZ5uju55F3QBF4SGclzcXcLo2DlW9zuIG7 3o8ARuzG55/3oDPIcalbELw+6iYQD7Nnbk48rIPr5zFMyVffIyT3pTrrL4DcxPEG FE6Wq2sy9twP1yFsb3Kx7LJ2H9rpgtsVNCq7WQ= X-Sasl-enc: elJgWaaperiMte75DIwLigrMiDp0B5oGV53dzf6IPwSh 1442997541 Original-Received: from blueberry (brc29-2-88-162-37-238.fbx.proxad.net [88.162.37.238]) by mail.messagingengine.com (Postfix) with ESMTPA id 5B12DC00013; Wed, 23 Sep 2015 04:39:01 -0400 (EDT) In-Reply-To: <1442942272.3270.1@smtp.gmail.com> User-Agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/25.0.50.6 (x86_64-unknown-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 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:190276 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Simen Heggest=C3=B8yl 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? Cheers, Nico --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: GPGTools - http://gpgtools.org iQEcBAEBCAAGBQJWAmUjAAoJECM1h6R8IHkQwl4H/jdge9FVtG5E1PEaFj168UaT vLS2FFQtL3zTONcpfgyX0ow3y6J/GAurlkvrOCZ0nOZhEEtdLyZGkJjoRaNyR02P wmltyCaQK1NAAkJKZVC9KjC9N/NuN34qjMugodUELAXCuDrCBi25n86foa+mCS26 CHiRo1cI1n1cBKVQpEXhzS/vZ/pVQIA128XykHAN5qbL6c7UfTJ50bkRZ0C5ywFL y/uZdM/g67vcsTKCmBpixI0xNujBvbbxNaLoxM7WaxrI+HdCjNY8pRisDo4wkPsc uND+pO+tm08wLMiQ2qKvg9gEhsiq/vycQIJLOC1m3MRXfLL7PqhJiKAAXHSfM7Q= =/nxK -----END PGP SIGNATURE----- --=-=-=--