def touch_go

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

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

175def touch_go(a, -V: Kind(a), f: LRU<a, V>, +s: U32, newest: Bool) -> LRU<a, V>:
176  match newest:
177    case True{}:
178      f
179    case False{}:
180      link_tail(a, V, unlink(a, V, f, s), s)

Uses (5)

Used by (1)