def ct_pick

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

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

595def ct_pick(a, -V: Kind(a), f: LRU<a, V>, +s: U32, +at: U32, g: Bool) -> LRU<a, V> & Bool:
596  match g:
597    case False{}:
598      (f, True{})
599    case True{}:
600      ct_expire(a, V, rd_expire(a, V, f, s, at, False{}))

Uses (7)

Used by (1)