#HashMap key duping safe?
1 messages · Page 1 of 1 (latest)
you can customize the equality function (as well as hashing) with the hashmap's Context type passed in at compile time. StringHashMap checks for byte equality so duping and using that as key should return the same lookup value: https://github.com/ziglang/zig/blob/master/lib/std/hash_map.zig#L66-L89