3.28. kink/container/HASH_MAP

Provides a map implementation backed by a hash table.

3.28.1. HASH_MAP.new($_hash [[$config = {}]])

Makes an empty hash map.

$_hash is a hash fun for keys of the map.

$config takes a hash_map_conf val.

If the equality fun is not specified by $congi, the map uses { \0 == \1 } as the default equality fun.

3.28.2. Type hash_map_conf

A conf of HASH_MAP.new.

Hash_map.eq_fun($_eq?)

Sets $_eq? as the equality fun of the map. $_eq? must take two keys, and returns true if the two keys are equal, otherwise false.