[Issue 10959] std.algorithm.remove is highly bug-prone

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10959 Iain Buclaw changed: What|Removed |Added Priority|P2 |P3 --

[Issue 10959] std.algorithm.remove is highly bug-prone

2018-02-10 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10959 Seb changed: What|Removed |Added CC||greensunn...@gmail.com ---

[Issue 10959] std.algorithm.remove is highly bug-prone

2014-01-23 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10959 Andrea Fontana advm...@katamail.com changed: What|Removed |Added CC|

[Issue 10959] std.algorithm.remove is highly bug-prone

2014-01-23 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10959 --- Comment #12 from daniel...@bigpond.com 2014-01-23 01:52:09 PST --- (In reply to comment #10) (In reply to comment #9) I've just given up on this idiom, instead using: ``` import std.algorithm; import std.stdio; void

[Issue 10959] std.algorithm.remove is highly bug-prone

2014-01-22 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10959 --- Comment #8 from bearophile_h...@eml.cc 2014-01-22 15:33:13 PST --- items = items.remove(items.countUntil(needle)); monarch_dodra comments: Hum... that requires iterating the range twice for a non-RA range. And you forgot a save:

[Issue 10959] std.algorithm.remove is highly bug-prone

2014-01-22 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10959 --- Comment #9 from daniel...@bigpond.com 2014-01-22 21:33:11 PST --- I've just given up on this idiom, instead using: ``` import std.algorithm; import std.stdio; void main() { auto items = [10, 20, 30]; auto t = items.filter!(x = x

[Issue 10959] std.algorithm.remove is highly bug-prone

2014-01-22 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10959 --- Comment #10 from monarchdo...@gmail.com 2014-01-22 23:22:14 PST --- (In reply to comment #9) I've just given up on this idiom, instead using: ``` import std.algorithm; import std.stdio; void main() { auto items = [10, 20,

[Issue 10959] std.algorithm.remove is highly bug-prone

2014-01-09 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=10959 Damian damian...@hotmail.co.uk changed: What|Removed |Added CC|

[Issue 10959] std.algorithm.remove is highly bug-prone

2013-09-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10959 --- Comment #3 from bearophile_h...@eml.cc 2013-09-10 05:59:32 PDT --- (In reply to comment #2) -1, I disagree on all points except to rename to `std.algorithm.removeAt` and add a complimentary method which instead removes by value. Are you

[Issue 10959] std.algorithm.remove is highly bug-prone

2013-09-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10959 --- Comment #4 from daniel...@bigpond.com 2013-09-10 07:28:02 PDT --- After 24 hours of thinking about it, I've come to agree with your statement. My original sentiment was that of likening std.algorithm.remove to its look-alike

[Issue 10959] std.algorithm.remove is highly bug-prone

2013-09-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10959 --- Comment #5 from bearophile_h...@eml.cc 2013-09-10 07:34:20 PDT --- (In reply to comment #4) Sorry, I'll hope you forgive me. Thank you, but you don't need to ask for forgiveness for just disagreeing with me :-) Disagreeing is a natural

[Issue 10959] std.algorithm.remove is highly bug-prone

2013-09-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10959 daniel...@bigpond.com changed: What|Removed |Added CC||daniel...@bigpond.com ---

[Issue 10959] std.algorithm.remove is highly bug-prone

2013-09-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10959 Dylan tcdknut...@gmail.com changed: What|Removed |Added CC||tcdknut...@gmail.com ---