ATSLIB/libats/ML/hashtblref
This package implements hashtables where the buckets associated with
keys are represented as (singly or doubly) linked lists.
Synopsis
typedef
hashtbl
(key:t@ype, itm:t@ype) = hashtbl(key, itm)
Synopsis
Synopsis for [hashtbl_type] is unavailable.
Synopsis
fun{
key,itm:t0p
} hashtbl_make_nil
(cap: sizeGte(1)): hashtbl(key, itm)
Synopsis
fun{}
hashtbl_get_size
{key,itm:t0p}(hashtbl(key, itm)): sizeGte(0)
Synopsis
fun{}
hashtbl_get_capacity
{key,itm:t0p}(hashtbl(key, itm)): sizeGte(1)
Synopsis
fun{
key,itm:t0p
} hashtbl_search
(hashtbl(key, INV(itm)), key): Option_vt(itm)
Synopsis
fun{
key,itm:t0p
} hashtbl_search_ref
(tbl: hashtbl(key, INV(itm)), k: key): cPtr0(itm)
Synopsis
fun{
key,itm:t0p
} hashtbl_insert
(hashtbl(key, INV(itm)), key, itm): Option_vt(itm)
Synopsis
fun{
key,itm:t0p
} hashtbl_insert_any
(hashtbl(key, INV(itm)), key, itm): void
Synopsis
fun{
key,itm:t0p
} hashtbl_takeout
(kxs: hashtbl(key, INV(itm)), k0: key): Option_vt(itm)
Synopsis
fun{
key,itm:t0p
} hashtbl_takeout_all
(kxs: hashtbl(key, INV(itm))): list0(@(key, itm))
Synopsis
fun{
key,itm:t0p
} hashtbl_remove
(kxs: hashtbl(key, INV(itm)), key): bool
Synopsis
fun{
key,itm:t0p
} hashtbl_listize1
(kxs: hashtbl(key, INV(itm))): list0(@(key, itm))