def purge

bend-collections@1.0.0.0 · src/containers/lru.bend:728

import bend-collections@1.0.0.0/src/containers/lru.bend as Lru
import Base

728# Every entry and the metrics are cleared; the table keeps its size.
729def purge(a, -V: Kind(a), f: LRU<a, V>) -> LRU<a, V> & U32:
730  F{+cap, +n, head, tail, free, m, tab, ks, ents, lk} = f
731  purge_b(a, V, cap, n, ks, ents, lk, Array.get(U32, m, 7))

Uses (5)

Used by (0)

No other definition uses this definition.