Learning Zig - Generics

from blog openmymind.net, | ↗ original
Heap Memory & Allocators Intro Coding In Zig Generics In the previous part we built a bare-boned dynamic array called IntList. The goal of the data structure was to store a dynamic number of values. Although the algorithm we used would work for any type of data, our implementation was tied to i64 values. Enter generics, the goal of which...