def touch

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

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

182def touch(a, -V: Kind(a), f: LRU<a, V>, +s: U32) -> LRU<a, V>:
183  F{cap, n, head, +tail, free, m, tab, ks, ents, lk} = f
184  touch_go(a, V, F{cap, n, head, tail, free, m, tab, ks, ents, lk}, s, U32.is_eq(H.link(s), tail))

Uses (5)

Used by (2)