From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: seq-some-p and nil Date: Sat, 05 Sep 2015 21:17:46 -0400 Message-ID: <878u8k2vnp.fsf@udel.edu> References: <1441295429.4215.0@smtp.gmail.com> <87si6vl21r.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1441502297 8771 80.91.229.3 (6 Sep 2015 01:18:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Sep 2015 01:18:17 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 06 03:18:08 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 1ZYOat-00077Y-2n for ged-emacs-devel@m.gmane.org; Sun, 06 Sep 2015 03:18:07 +0200 Original-Received: from localhost ([::1]:44050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYOat-0004OL-07 for ged-emacs-devel@m.gmane.org; Sat, 05 Sep 2015 21:18:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYOaf-0004O9-2v for emacs-devel@gnu.org; Sat, 05 Sep 2015 21:17:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYOab-0004ZK-Tf for emacs-devel@gnu.org; Sat, 05 Sep 2015 21:17:53 -0400 Original-Received: from mail-qg0-f41.google.com ([209.85.192.41]:34894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYOab-0004ZD-Pl for emacs-devel@gnu.org; Sat, 05 Sep 2015 21:17:49 -0400 Original-Received: by qgt47 with SMTP id 47so41961555qgt.2 for ; Sat, 05 Sep 2015 18:17:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:date:message-id :user-agent:mime-version:content-type; bh=x+YiM8zysfsdx5Q7KUYT7Ir8jhG/VyVS7DB92neozC0=; b=YsAnQtYfQexA0VEqf8bTH4a2LwHF1lojdMoA/y3txcXqkuxdBfZb609rYe0gHYv9xS gJHEPLFo1ZcDGHmRiTpFLYohRYVaPGr2EkJZ7xo9qhQn4lwuHwBTeHENQrrU6jpRQWcC fWlpWjNP6Z6yFz0E5Po2FxlD+UX/4Ku6KGOzMZICWrBzQ6q+fUpBU3fc7FJmvyog1ZgJ ZKgG3FOoj3SClUg57jJ7uCk6BqSLGP0sGv/CjfKc5W3MOUXrQh0yQtc7QbtNLUKYqkHe nSE58uO6oHY6yqWrctPn1x79u6uj2vudTYWKITnx3DORhWj6UTSOV9RH1G+G0fm0gNWC h4wg== X-Gm-Message-State: ALoCoQnkaFDsQX+ygY2oHV8oo0JY19z2utiOt7ogIfUY3IFhyVtrbOGNzDRPJktWcx1PPIBSzrwa X-Received: by 10.140.148.203 with SMTP id 194mr17892557qhu.102.1441502269255; Sat, 05 Sep 2015 18:17:49 -0700 (PDT) Original-Received: from holos.localdomain (c-73-172-248-173.hsd1.md.comcast.net. [73.172.248.173]) by smtp.gmail.com with ESMTPSA id n10sm4207118qki.24.2015.09.05.18.17.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 05 Sep 2015 18:17:48 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id C03CC68971; Sat, 5 Sep 2015 21:17:46 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.41 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:189636 Archived-At: Nicolas Petton writes: > John Mastro writes: > >> Artur Malabarba wrote: >>> Agreed, and that's not the only case. >>> Both `seq-some-p' and `seq-contains-p' are named as predicates but do >>> not behave as predicates. >> >> I think `seq-some-p' (or its successor) would also be more useful if it >> promised to return the first matching element (the docstring says "any >> element", though in practice it does return the first). > > Indeed, I agree. I will update its docstring. I also liked seq-some-p returning the matching element over cl-some returning the value returned by the predicate. Perhaps there could be a function in seq that preserves this behavior.