Looking for a Simple Doubly Linked List Implementation
H. S. Teoh
hsteoh at quickfur.ath.cx
Fri Sep 20 20:35:41 UTC 2019
On Fri, Sep 20, 2019 at 08:26:03PM +0000, Ron Tarrant via Digitalmars-d-learn wrote:
> Hi guys,
>
> I've been banging my head on the screen with this one for the last
> week or so. For whatever reason, I'm having major problems
> understanding how to implement a doubly-linked list in D. I don't know
> if it's because I'm losing my ability to sort these things or if it's
> just that different from C.
>
> If someone could please post a minimal example (if there's extra stuff
> in there, I'll get confused; I'm getting that old, dammit) I'd be ever
> so grateful.
Not a minimal example by any means, but Phobos *does* come with a
doubly-linked list implementation: std.container.dlist. Looking at the
code should help clarify whatever it is you're struggling with.
T
--
Elegant or ugly code as well as fine or rude sentences have something in common: they don't depend on the language. -- Luca De Vitis
More information about the Digitalmars-d-learn
mailing list