Is there such concept of a list in D?

j my.email at gmail.com
Mon Dec 19 06:27:22 UTC 2022


On Monday, 19 December 2022 at 03:31:05 UTC, thebluepandabear 
wrote:
> On Sunday, 18 December 2022 at 22:17:04 UTC, j wrote:
>> On Saturday, 10 December 2022 at 05:46:26 UTC, 
>> thebluepandabear wrote:
>>> In most languages there is some sort of `List<T>` type, is 
>>> that the same for D?
>>
>>
>>
>> What you're probably talking about is called a union in the C 
>> world. There is a nice (free) book by Ali that every Dlang 
>> beginner should probably read.
>
> I am reading that exact book (halfway through), it's great. I 
> wasn't talking about the `union` type (I am familiar with it), 
> I was talking about Java's `ArrayList<T>` / C++'s 
> `std::vector<T>` / Rust's `vec!`.


A vector is not a linked list. Actually, a vector is an array.


More information about the Digitalmars-d-learn mailing list