def rm_short

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

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

696def rm_short(a, -V: Kind(a), f: LRU<a, V>, +c: U32, ok: Bool) -> LRU<a, V> & Maybe<a, V>:
697  match ok:
698    case True{}:
699      rm_q(a, V, f, H.short_word(c))
700    case False{}:
701      remove_long(a, V, f, SCon{Chr{c}, SNil{}})

Uses (10)

Used by (1)