# Zig's HashMap - Part 3

**URL:** <https://ziggit.dev/t/zigs-hashmap-part-3/5536>\
**Category:** Media\
**Tags:** blog-post, standard-library\
**Created:** [August 7, 2024, 2:38pm UTC](https://ziggit.dev/t/zigs-hashmap-part-3/5536 "2024-08-07T14:38:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dimdin](https://ziggit.dev/user_avatar/ziggit.dev/dimdin/32/1457_2.png) [@dimdin](https://ziggit.dev/u/dimdin)\
**Post date:** [August 7, 2024, 2:38pm UTC](https://ziggit.dev/t/zigs-hashmap-part-3/5536/1 "2024-08-07T14:38:43Z")

</div>

Karl Seguin continues on zig `HashMap`

[Zig’s HashMap - Part 3](https://www.openmymind.net/Zigs-HashMap-Part-3/)  
The Context is a simple interface which makes `HashMap` usable for any key. As long as you can provide a `hash` and `eql` implementation, you can use any type of key.

[Zig’s HashMap - Part 2](https://www.openmymind.net/Zigs-HashMap-Part-2/)  
Loosely speaking, Zig’s hash map are implemented using two slices: one for keys and one for values.

[Zig’s HashMap - Part 1](https://www.openmymind.net/Zigs-HashMap-Part-1/)  
Like most hash map implementations, Zig’s `std.HashMap` relies on 2 functions,  
 `hash(key: K) u64` and `eql(key_a: K, key_b: K) bool`
