Removing an element from a list or array
Patrick via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Aug 6 12:01:24 PDT 2014
I feel dumb. I've been searching for how to do this, and each
page or forum entry I read makes me more confused.
Let's say I have a list of values (Monday, Tuesday, Wednesday,
Thursday, Friday). I can store this list in an Slist, Dlist,
Array etc -- any collection is fine.
I decide I want to remove Thursday from the list.
How? I see that linearRemove is meant to do this, but that takes
a range. How do I get a range of 'Thursday'?
More information about the Digitalmars-d-learn
mailing list