Re: Are there an equivalent to C#'s List in D's stdlib?

2021-01-07 Thread Mike Parker via Digitalmars-d-learn
On Friday, 8 January 2021 at 03:22:49 UTC, Jack wrote: tedius, imo. Now, if I went to use filter, could I remove that item and somewhat get an array back, without perform a new array allocation? currently i'm with this, that as far i know, does perform memory allocation by array() call: arr

Re: Are there an equivalent to C#'s List in D's stdlib?

2021-01-07 Thread Jack via Digitalmars-d-learn
On Friday, 8 January 2021 at 03:14:34 UTC, Mike Parker wrote: On Friday, 8 January 2021 at 02:53:47 UTC, Jack wrote: I coduln't find an equivalent in the documentation, I could see appender, Array, container etc but none of has a Remove(T item) method like C#'s [1]. Are there not such

Re: Are there an equivalent to C#'s List in D's stdlib?

2021-01-07 Thread Jack via Digitalmars-d-learn
On Friday, 8 January 2021 at 03:06:24 UTC, James Blachly wrote: On 1/7/21 9:53 PM, Jack wrote: I coduln't find an equivalent in the documentation, I could see appender, Array, container etc but none of has a Remove(T item) method like C#'s [1]. Are there not such implementation and I do have

Re: Are there an equivalent to C#'s List in D's stdlib?

2021-01-07 Thread Mike Parker via Digitalmars-d-learn
On Friday, 8 January 2021 at 02:53:47 UTC, Jack wrote: I coduln't find an equivalent in the documentation, I could see appender, Array, container etc but none of has a Remove(T item) method like C#'s [1]. Are there not such implementation and I do have to write one myself or I just couldn't

Re: Are there an equivalent to C#'s List in D's stdlib?

2021-01-07 Thread James Blachly via Digitalmars-d-learn
On 1/7/21 9:53 PM, Jack wrote: I coduln't find an equivalent in the documentation, I could see appender, Array, container etc but none of has a Remove(T item) method like C#'s [1]. Are there not such implementation and I do have to write one myself or I just couldn't find? [1]:

Are there an equivalent to C#'s List in D's stdlib?

2021-01-07 Thread Jack via Digitalmars-d-learn
I coduln't find an equivalent in the documentation, I could see appender, Array, container etc but none of has a Remove(T item) method like C#'s [1]. Are there not such implementation and I do have to write one myself or I just couldn't find? [1]: