Lru.set_cap: def of bend-collections@1.0.0.0
Import: import bend-collections@1.0.0.0/src/containers/lru.bend as Lru
Lines 759-761 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=759&end_line=761
import Base
def set_cap(a, -V: Kind(a), f: LRU, +cap: U32) -> LRU:
F{c0, +n, head, tail, free, m, tab, ks, ents, lk} = f
F{cap, n, head, tail, free, m, tab, ks, ents, lk}
Uses (2):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32
https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/lru.bend&name=LRU