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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 22 15:33:20 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=10959



--- Comment #8 from bearophile_hugs at 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:
> 
> items = items.remove(items.save.countUntil(needle));

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list