From: Stefan Kangas <stefan@marxist.se>
To: "Basil L. Contovounesios" <contovob@tcd.ie>,
Lars Ingebrigtsen <larsi@gnus.org>
Cc: 44205@debbugs.gnu.org
Subject: bug#44205: [PATCH] Add new function seq-remove-item
Date: Thu, 12 Nov 2020 19:07:52 -0500 [thread overview]
Message-ID: <CADwFkmkPMw75Ds9ymKi3oYN9ziZ_RAztSBMAu0apvTPfeZpBPA@mail.gmail.com> (raw)
In-Reply-To: <87v9evvliw.fsf@tcd.ie>
"Basil L. Contovounesios" <contovob@tcd.ie> writes:
> Lars Ingebrigtsen <larsi@gnus.org> writes:
>
>> Stefan Kangas <stefan@marxist.se> 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.
next prev parent reply other threads:[~2020-11-13 0:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-25 0:52 bug#44205: [PATCH] Add new function seq-remove-item Stefan Kangas
2020-10-25 12:49 ` Lars Ingebrigtsen
2020-10-27 13:36 ` Basil L. Contovounesios
2020-11-13 0:07 ` Stefan Kangas [this message]
2020-11-18 17:17 ` Stefan Kangas
2020-10-25 16:25 ` Unknown
2020-10-25 19:12 ` Juri Linkov
2020-10-27 13:45 ` Basil L. Contovounesios
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADwFkmkPMw75Ds9ymKi3oYN9ziZ_RAztSBMAu0apvTPfeZpBPA@mail.gmail.com \
--to=stefan@marxist.se \
--cc=44205@debbugs.gnu.org \
--cc=contovob@tcd.ie \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.