Is there such concept of a list in D?

Gregor Mückl gregormueckl at gmx.de
Mon Dec 12 17:56:46 UTC 2022


On Sunday, 11 December 2022 at 17:45:20 UTC, ryuukk_ wrote:
> There is: https://dlang.org/phobos/std_container_dlist.html
>
> Why is it called ``DList`` and not just ``List``, i have no clue

The D is to indicate that it is a doubly-linked list. It 
maintains a forward and backward pointer chain to support 
iteration in both directions. This is in contrast to SList 
(std.container.slist) that only has a forward pointer chain.


More information about the Digitalmars-d-learn mailing list