def add_miss

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

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

390def add_miss(a, -V: Kind(a), f: LRU<a, V>, key: String, +at: U32, +h: U32, e: Ent<a, V>, full: Bool) -> LRU<a, V> & Bool:
391  match full:
392    case False{}:
393      (miss_room(a, V, f, key, at, h, e), False{})
394    case True{}:
395      (miss_full(a, V, evict_oldest(a, V, f), key, h, e), True{})

Uses (10)

Used by (1)