def rd_live

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

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

482def rd_live(a, -V: Kind(a), f: LRU<a, V>, +s: U32, +tracked: Bool, v: V) -> LRU<a, V> & Maybe<a, V>:
483  match tracked:
484    case True{}:
485      (touch(a, V, fbump(a, V, 3, f), s), Some{v})
486    case False{}:
487      (f, Some{v})

Uses (8)

Used by (1)