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: Mon, 07 Sep 2015 08:11:07 +0200 Message-ID: <878u8i69ok.fsf@petton.fr> References: <1441295429.4215.0@smtp.gmail.com> <87si6vl21r.fsf@petton.fr> <878u8k2vnp.fsf@udel.edu> 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 1441606291 5450 80.91.229.3 (7 Sep 2015 06:11:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Sep 2015 06:11:31 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier , Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 07 08:11:20 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 1ZYpeB-0005Ws-D3 for ged-emacs-devel@m.gmane.org; Mon, 07 Sep 2015 08:11:19 +0200 Original-Received: from localhost ([::1]:53456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYpeA-0007Ys-Jz for ged-emacs-devel@m.gmane.org; Mon, 07 Sep 2015 02:11:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYpe6-0007YX-FF for emacs-devel@gnu.org; Mon, 07 Sep 2015 02:11:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYpe3-0006zR-91 for emacs-devel@gnu.org; Mon, 07 Sep 2015 02:11:14 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:58513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYpe3-0006zB-5w for emacs-devel@gnu.org; Mon, 07 Sep 2015 02:11:11 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 8FE3F20552 for ; Mon, 7 Sep 2015 02:11:10 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Mon, 07 Sep 2015 02:11:10 -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=61ws0mbya2K7JjZ9owCf73zYlKU=; b=rTVvi 6rdtlCVbaVbJ1Y9ksoSuBVtm0936ZUZVZLov6cnrkuhH9m3Cn7nlAjoQEcDJyEdz foIvc/kZjROh+OV2skxklU9yhtxHK+LD0S9drwojlnFh4vUdb9H7iAaTUZ/682vb 5s41Pofe4vpxAVxb4CiOwaFiq/W0PAD9RWEGCM= X-Sasl-enc: arxIDE3/cyiFtXSKghCpPnKumsRys6EHJb2GJfqziKPN 1441606270 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 B9A61680143; Mon, 7 Sep 2015 02:11:09 -0400 (EDT) In-Reply-To: User-Agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/25.0.50.4 (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.28 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:189664 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Stefan Monnier writes: >> I also liked seq-some-p returning the matching element over cl-some >> returning the value returned by the predicate. > > But if the matched element is nil ... If the function is not supposed to return non-nil if an element is matched but the element itself, then would it be ok? OTOH there would be again no way to differentiate between no element found and nil being found in the sequence. Nico =2D-=20 Nicolas Petton http://nicolas-petton.fr --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: GPGTools - http://gpgtools.org iQEcBAEBCAAGBQJV7Sp7AAoJECM1h6R8IHkQfkQIAKzbEFkJkmPaeTqJFgdpAkPq zo+QW3H2tKv4ibLW7NZq7v6cRBk6rdoKd7wIcaF3sWvoHr1x8Nc4xotLr4Sp00eI BWdx7t9HmwBLA2TN6GEcn9ysAEZIpEHoVnwPoJny4Lmmyq52V6PXWgZgnK/TsrP4 lle4WpICPcaHaFIRs9X25zaUiAQ9ZypclaJMoDYLAAsp4dT5cmUJ67uSondJtvYl 0YvN7y5SNHoq+QrVWUDE3NHMsV/s1s83A9j1idElCnkXWbrm7yhAz/JI158I9b4k uJfpL4Iobx8oUX+MAnvPf4WZX4+KyFjir4N27ZJoHHSRV4q+PGaSpxHmGa2gwSM= =bChV -----END PGP SIGNATURE----- --=-=-=--