Lru.kx_check: def of bend-collections@1.0.0.0
Import: import bend-collections@1.0.0.0/src/containers/lru.bend as Lru
Lines 809-811 of bend-collections@1.0.0.0/src/containers/lru.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/containers/lru.bend&start_line=809&end_line=811
import Base
import bend-collections@1.0.0.0/src/math/u64.bend as W
def kx_check(a, -V: Kind(a), f: LRU, +now: W.U64) -> Kx:
F{cap, n, +head, tail, free, m, tab, ks, ents, lk} = f
kx_if(a, V, F{cap, n, head, tail, free, m, tab, ks, ents, lk}, now, U32.is_eq(head, 0))
Uses (5):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq
https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/lru.bend&name=Kx
https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/lru.bend&name=LRU
https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/lru.bend&name=kx_if
https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/math/u64.bend&name=U64