From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#44205: [PATCH] Add new function seq-remove-item Date: Thu, 12 Nov 2020 19:07:52 -0500 Message-ID: References: <87v9eybhcc.fsf@gnus.org> <87v9evvliw.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13451"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44205@debbugs.gnu.org To: "Basil L. Contovounesios" , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 13 01:08:20 2020 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 1kdMdY-0003Mz-T9 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Nov 2020 01:08:20 +0100 Original-Received: from localhost ([::1]:54022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdMdX-00042s-D0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 12 Nov 2020 19:08:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdMdG-00041l-Gk for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2020 19:08:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34547) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdMdG-000407-1D for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2020 19:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdMdF-00042x-S4 for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2020 19:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Nov 2020 00:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44205 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 44205-submit@debbugs.gnu.org id=B44205.160522608115549 (code B ref 44205); Fri, 13 Nov 2020 00:08:01 +0000 Original-Received: (at 44205) by debbugs.gnu.org; 13 Nov 2020 00:08:01 +0000 Original-Received: from localhost ([127.0.0.1]:46091 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdMdF-00042h-1O for submit@debbugs.gnu.org; Thu, 12 Nov 2020 19:08:01 -0500 Original-Received: from mail-ej1-f50.google.com ([209.85.218.50]:42174) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdMdC-00042N-BJ for 44205@debbugs.gnu.org; Thu, 12 Nov 2020 19:07:59 -0500 Original-Received: by mail-ej1-f50.google.com with SMTP id i19so10672524ejx.9 for <44205@debbugs.gnu.org>; Thu, 12 Nov 2020 16:07:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=9SPEf0aVQvikSdskKoGEkf481oOyuM3BAF01EbUx7X4=; b=tM2i2MPCYtLs/L7fJLQLJ0oe0HbmKkB5IaOYERLa9Fvi/raukxwtGW0kXGR8ZsLgkk e0AFfK4pqlrBg6Sxv9MHoyK+KQThSce9toSZ2PEOMX8peLR34Oi7lD36bPcsXbPZXusl DlzHf57ZFMKrpdtx7ydDpJpjcVLrFCtocKj9vyeb3TWU4kLq/HOzJr6CRY8U3h7auCR6 Q5XePdsC10wKofBsqixx9hWHMzdvh2NkkDWIy5Zy0b6UH8/h/5T5KzNkDY/N+XruED94 4vIyungF2iCbtGMw6i1SSuDdOuOrppTZSCAisPI/oG5oROMttFnzvxdbM6AOI0QhRWkb lVfw== X-Gm-Message-State: AOAM533gYkR+tHP3XOSNv810JSg2AaZj2sFw/S1x3yQPiuVcWjoECmIb XMQ6ifvLXyi+jgTJwDLq9+np4Y1aBnZsXNcgKno= X-Google-Smtp-Source: ABdhPJxJD5djp34HCGE2sROzCNFeTBqlwN8WLGBPc/9qhKj7BlxJWP6iDPghNiTFU4vgbQhScOt91qHLUZ3mGXKqjBw= X-Received: by 2002:a17:906:4e90:: with SMTP id v16mr1854859eju.477.1605226072697; Thu, 12 Nov 2020 16:07:52 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 12 Nov 2020 19:07:52 -0500 In-Reply-To: <87v9evvliw.fsf@tcd.ie> 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:193194 Archived-At: "Basil L. Contovounesios" writes: > Lars Ingebrigtsen writes: > >> Stefan Kangas writes: >> >>> I found myself reaching for a version of `seq-remove' where I don't have >>> to supply a lambda but can just give an item. Ergo, the attached. >>> >>> (seq-remove-item 2 '(1 2 3)) => (1 3) >>> >>> I find it a whole lot nicer than: >>> >>> (seq-remove (lambda (a) (= a 2)) '(1 2 3)) => (1 3) >> >> Isn't this just >> >> (remove 2 '(1 2 3)) => (1 3) >> >> though? I don't think seq.el needs to replicate the basic list >> functions... > > I think the idea is that seq.el functions are generic and can thus be > extended to work with e.g. streams[1]. That was the idea, yes. It is fairly minor even in my use, so I have no qualms with just closing this as wontfix if people think it's not worthwhile enough to add.