def unlink
import bend-collections@1.0.0.0/src/containers/lru.bend as Lruimport Base
164# Detach slot s from the recency list.
165def unlink(a, -V: Kind(a), f: LRU<a, V>, +s: U32) -> LRU<a, V>:
166 F{+cap, +n, +head, +tail, +free, m, tab, ks, ents, lk} = f
167 ul_p(a, V, cap, n, head, tail, free, m, tab, ks, ents, s, Array.get(U32, lk, pidx(s)))