Zig by Example
HashMap
< 1 min read
std.AutoHashMap(K, V) handles integer and pointer keys for you.
For string keys, reach for std.StringHashMap(V) instead.
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 →