3.29. kink/container/HASH_SET

Provides a set implementation backed by a hash table.

3.29.1. HASH_SET.new($_hash [[$config = {}]])

Makes an empty hash set.

$_hash is a hash fun for elems of the set.

$config takes a hash_set_conf val. Hash_set_conf has the following method.

If the equality fun is not specified, the set uses { \0 == \1 } as the default equality fun.

3.29.2. Type hash_set_conf

A conf of HASH_SET.new.


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