Is there such concept of a list in D?

thebluepandabear therealbluepandabear at protonmail.com
Sat Dec 10 06:11:18 UTC 2022


On Saturday, 10 December 2022 at 05:54:09 UTC, Steven 
Schveighoffer wrote:
> On 12/10/22 12:46 AM, thebluepandabear wrote:
>> In most languages there is some sort of `List<T>` type, is 
>> that the same for D?
>
> D doesn't focus on interfaces, we have concepts, like ranges.
>
> Sorry, it's hard to answer your question without asking more 
> questions: are you looking for a linked list? A list API? A 
> specific list interface?
>
> -Steve

I was wondering more if there is an object oriented way of 
creating arrays, like in Java there is an `ArrayList`, in C++ 
there is `std::vector`, etc.


More information about the Digitalmars-d-learn mailing list