def evict_oldest
import bend-collections@1.0.0.0/src/containers/lru.bend as Lruimport Base
import bend-collections@1.0.0.0/src/containers/hash_table.bend as H
295def evict_oldest(a, -V: Kind(a), f: LRU<a, V>) -> LRU<a, V>:
296 F{cap, n, +head, tail, free, m, tab, ks, ents, lk} = f
297 drop_v(a, V, remove_slot(a, V, F{cap, n, head, tail, free, m, tab, ks, ents, lk}, H.slot(head), 1))