6.11. Map

This module implements a key -> value store and mathematical sets using hashtables.

typeMap

An opaque type of supertype Struct.

inline__as ( cls T )
inline__countof ( self )
fn__drop ( self )
inline__typecall ( cls opts... )
fnclear ( self )
fndiscard ( self key )

erases a key -> value association from the map; if the map does not contain this key, nothing happens.

fndump ( self )
fnget ( self key )

returns the value associated with key or raises an error

fngetdefault ( self key value )

returns the value associated with key or raises an error

fnin? ( self key )
fnset ( self key value )

inserts a new key -> value association into map; key can be the output of any custom hash function. If the key already exists, it will be updated.

fnterseness ( self )

computes the hashmap load as a normal between 0.0 and 1.0

typeMapError

An unique type of supertype Enum and of storage type {u8 {<i8 x 1>}}.

typeSet

An opaque type of supertype Struct.

inline__as ( cls T )
inline__countof ( self )
fn__drop ( self )
inline__typecall ( cls opts... )
fnclear ( self )
fndiscard ( self key )

erases a key -> value association from the map; if the map does not contain this key, nothing happens.

fndump ( self )
fnin? ( self key )
fninsert ( self key )

inserts a new key into set

fnterseness ( self )

computes the hashmap load as a normal between 0.0 and 1.0