[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#44205: [PATCH] Add new function seq-remove-item
From: |
Stefan Kangas |
Subject: |
bug#44205: [PATCH] Add new function seq-remove-item |
Date: |
Wed, 18 Nov 2020 09:17:53 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
tags 44205 wontfix
close 44205
thanks
Stefan Kangas <stefan@marxist.se> writes:
> "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.
It seems like there was no great enthusiasm for this change. I'm
therefore closing this bug report.