ATSLIB/libats/hashtbl_chain
Synopsis
vtypedef
hashtbl
(k:t0p, i:vt0p) = hashtbl_vtype(k, i)
Synopsis
absvtype
hashtbl_vtype
(k:t@ype, i:vt@ype+) = ptr
Synopsis
fun{
key:t0p;itm:t0p
} hashtbl_search
(
tbl: !hashtbl(key, INV(itm))
, key: key, res: &itm? >> opt (itm, b)
) : #[b:bool] bool(b)
Synopsis
fun{
key:t0p;itm:vt0p
} hashtbl_search_ref
(tbl: !hashtbl(key, INV(itm)), key: key): cPtr0 (itm)
Synopsis
fun{
key:t0p;itm:t0p
} hashtbl_search_opt
(tbl: !hashtbl(key, INV(itm)), key: key): Option_vt(itm)
Synopsis
fun{
key:t0p;itm:vt0p
} hashtbl_insert
(
tbl: !hashtbl(key, INV(itm))
, key: key, x0: itm, res: &itm? >> opt (itm, b)
) : #[b:bool] bool (b)
Synopsis
fun{
key:t0p;itm:vt0p
} hashtbl_insert_opt
(tbl: !hashtbl(key, INV(itm)), key, itm): Option_vt(itm)
Synopsis
fun{
key:t0p;itm:vt0p
} hashtbl_insert_any
(!hashtbl(key, INV(itm)), key, itm): void
Synopsis
fun{
key:t0p;itm:vt0p
} hashtbl_takeout
(
tbl: !hashtbl(key, INV(itm))
, key: key, res: &itm? >> opt (itm, b)
) : #[b:bool] bool (b)
Synopsis
fun{
key:t0p;itm:vt0p
} hashtbl_takeout_opt
(!hashtbl(key, INV(itm)), key): Option_vt(itm)
Synopsis
fun{
key:t0p;itm:t0p
} hashtbl_remove
(tbl: !hashtbl(key, INV(itm)), key: key): bool
Synopsis
fun{
key:t0p;itm:vt0p
} hashtbl_reset_capacity
(tbl: !hashtbl(key, INV(itm)), cap2: sizeGte(1)): bool
Synopsis
fun{
key:t0p;itm:vt0p
} hashtbl_adjust_capacity (!hashtbl(key, INV(itm))): bool
Synopsis
fun{
key,itm:t@ype
} fprint_hashtbl
(out: FILEref, tbl: !hashtbl(key, INV(itm))): void
Synopsis
fun{}
fprint_hashtbl$sep (out: FILEref): void
Synopsis
fun{}
fprint_hashtbl$mapto (out: FILEref): void
Synopsis
fun
{key:t0p
;itm:vt0p}
hashtbl_foreach (tbl: !hashtbl(key, INV(itm))): void
Synopsis
fun
{key:t0p
;itm:vt0p}
{env:vt0p}
hashtbl_foreach_env
(tbl: !hashtbl(key, INV(itm)), env: &env >> _): void
Synopsis
fun
{key:t0p
;itm:vt0p}
{env:vt0p}
hashtbl_foreach$fwork (k: key, x: &itm >> _, &env >> _): void
Synopsis
fun
{key:t0p
;itm:vt0p}
hashtbl_listize
(tbl: hashtbl(key, INV(itm))):<!wrt> List0_vt @(key, itm)
Synopsis
fun
{key:t0p
;itm:vt0p}
{ki2:vt0p}
hashtbl_flistize
(tbl: hashtbl(key, INV(itm))):<!wrt> List0_vt(ki2)
Synopsis
fun
{key:t0p
;itm:vt0p}
{ki2:vt0p}
hashtbl_flistize$fopr (k: key, x: itm): ki2
Synopsis
fun{
key,itm:t0p
} hashtbl_listize1
(tbl: !hashtbl(key, INV(itm))):<!wrt> List0_vt @(key, itm)