Zig by Example
Linked List
< 1 min read
As of 0.15+, std.DoublyLinkedList is de-genericified — the list works on
embedded Node pointers rather than values. You drop a Node field into
your own struct, then recover the parent with @fieldParentPtr.
Sign in to keep reading — it's free
Create a free account or sign in to continue.
Zig by Example
A hands-on introduction to Zig via annotated examples. Covers the language from Hello World through memory allocation, concurrency, networking, and C interop.
View book →