From Julia docs: getkey(collection, key, default)
Return the key matching argument key
if one exists in collection
, otherwise return default
.
The second argument of getkey
is a key (for example, 0 in your dict_nodes
), not a value. Also, you’re required to define hash()
and isequal()
for keys, not values. In your case the keys are integers not custom structs, so there’s nothing required from you.