On Wednesday, 13 January 2021 at 12:06:05 UTC, Roguish wrote:
On Wednesday, 13 January 2021 at 11:58:11 UTC, Roguish wrote:
I can't find anything about collections in D. All I have found are arrays and maps ("associative arrays"). What about lists and sets? What if I just want a linked list?

It seems collections are called "containers" in D's standard library, which explains why I didn't find anything searching for "collections".

As concerns linked lists, I have found

   https://dlang.org/phobos/std_container_dlist.html

which seems perfectly adequate.

What about sets?

I read many posts that rbtree can be a replacement for sets in dlang.

see its behaviour is identical.

https://dlang.org/phobos/std_container_rbtree.html

Reply via email to