Is there such concept of a list in D?

thebluepandabear therealbluepandabear at protonmail.com
Mon Dec 19 03:31:05 UTC 2022


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!`.


More information about the Digitalmars-d-learn mailing list