From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#58278: Add new function seq-keep Date: Tue, 04 Oct 2022 13:21:06 +0200 Message-ID: <878rlval7h.fsf@gmail.com> References: <87y1twtx22.fsf@bernoul.li> <87pmf84ggg.fsf@gnus.org> <87lepvaoow.fsf@gmail.com> <87czb7521o.fsf@gnus.org> <87h70janpn.fsf@gmail.com> <878rlv50ph.fsf@gnus.org> <87czb7amn1.fsf@gmail.com> <87bkqr3kup.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4750"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58278@debbugs.gnu.org, Jonas Bernoulli To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 13:28:13 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofg5s-00010H-Bv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 13:28:12 +0200 Original-Received: from localhost ([::1]:60224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofg5q-0006AK-Sc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 07:28:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1offzu-0006L5-Da for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 07:22:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1offzt-0007q1-Qt for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 07:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1offzt-0006z5-Lm for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 07:22:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 11:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58278 X-GNU-PR-Package: emacs Original-Received: via spool by 58278-submit@debbugs.gnu.org id=B58278.166488248126795 (code B ref 58278); Tue, 04 Oct 2022 11:22:01 +0000 Original-Received: (at 58278) by debbugs.gnu.org; 4 Oct 2022 11:21:21 +0000 Original-Received: from localhost ([127.0.0.1]:52702 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offzF-0006y7-0e for submit@debbugs.gnu.org; Tue, 04 Oct 2022 07:21:21 -0400 Original-Received: from mail-wr1-f44.google.com ([209.85.221.44]:41615) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1offz8-0006xn-MD for 58278@debbugs.gnu.org; Tue, 04 Oct 2022 07:21:19 -0400 Original-Received: by mail-wr1-f44.google.com with SMTP id bu30so928120wrb.8 for <58278@debbugs.gnu.org>; Tue, 04 Oct 2022 04:21:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=WfpYeouMzR99RKnPeo8x/V+ASBIHymlFqsiTAflReEo=; b=krwPuNuq1qqisaSMR8Kb6sc4hC+GOn3H7V7MM/y1F6jmivUQShdBSBFaGbBjC1eTU3 8rBvDX2Y2hqvASLwW6tG6muCFEghpmcFu2WGgreX0mRBXv0oJG9A5eO4O1YrdgsEN5fK SfLjnBCm4PHa56kmLnV95E80JQoblFpTJdgEyNDEZ95rX/wTlNYMPkJd2XJMM4N45IK9 UVxZ/9mhbNtysXyubS4vXLRXMeTuQI+MKwRJWa5Li9G3l2mIYYS1b/W1IHHBb17mx9Ku vGF1vOOvMD3Ly9tryWetxNPdMCjnCnXpRGD8s2kP9amZepGLm/uoIF6EdyvXpSdG4UU5 F1pQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WfpYeouMzR99RKnPeo8x/V+ASBIHymlFqsiTAflReEo=; b=AVX5nKhtpTaYVfaXy+x/yDXCw+ZwRk3d/xFKBrdQw0FmD3hNaJsBEUj3LpR9nd0wRb A9+kee1n3Wp87ry40EbltaBiFP83LvG6d99k/U9MtRUpCv/fzDwJzehs47YWd86yP3IB lmtTlJvYC2cmnf3hmvM7FizgJw+QndA8FalBYu0tvF/hf37fT7K1u9hDdYK27FmOFEzx lJfFkBWZQAYLiUJYxVW4Z+Fc6HjijOJtkSpgO4JXQ8JiYyGRTlH3HRTKTMzC88c1Yz06 j5jVnsnGFyft8wXpr5vGphvQxp+cw4GveFyQb6hT9L0KFxEUket68gBcYHN0hX5LobM6 ps+A== X-Gm-Message-State: ACrzQf0+lY76IC3ny7dv4Y1wXehrcCrU3KiAFr+FmY2uFGxkfm6txj+m efbKmebm4eF/TAAKR0Tr5oo= X-Google-Smtp-Source: AMsMyM59DkSdfaZxswyFt0kEu5e9Ajwdr9BPm8t/0iRa3xX2gCKnOEnVF9vQIb1WGc8MHfvXAtb2iQ== X-Received: by 2002:a5d:452b:0:b0:22e:3d4a:2ea3 with SMTP id j11-20020a5d452b000000b0022e3d4a2ea3mr5832361wra.309.1664882468861; Tue, 04 Oct 2022 04:21:08 -0700 (PDT) Original-Received: from rltb ([2a01:e0a:3f3:fb50:37f5:e4da:5e9c:64c1]) by smtp.gmail.com with ESMTPSA id c63-20020a1c3542000000b003a6a3595edasm14498125wma.27.2022.10.04.04.21.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Oct 2022 04:21:07 -0700 (PDT) In-Reply-To: <87bkqr3kup.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 04 Oct 2022 13:10:38 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:244401 Archived-At: >>>>> On Tue, 04 Oct 2022 13:10:38 +0200, Lars Ingebrigtsen said: Lars> Robert Pluim writes: >> That=CA=BCs why I said "apart from the syntactic sugar" =F0=9F=98=80 Lars> Having to rewrite Lars> (seq-keep #'cl-digit-char-p '(?6 ?a)) Lars> =3D> (6) Lars> to Lars> (cl-mapcan (lambda (c) Lars> (let ((res (cl-digit-char-p c))) Lars> (and res (list res)))) Lars> '(?6 ?a)) Lars> =3D> (6) Lars> is more than "syntactic sugar" in my book. Nobody would want to = write Lars> code like the latter. I never meant that. I meant defining `seq-keep' in terms of `'cl-mapcan', with the appropriate converting elements to lists done for you (or even using `mapcan' if you=CA=BCre willing to give up the &rest behaviour of `cl-mapcan') Robert --=20