Lru.rm_c: def of bend-collections@1.0.0.0
Import: import bend-collections@1.0.0.0/src/containers/lru.bend as Lru
Lines 703-708 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=703&end_line=708
import Base
import bend-collections@1.0.0.0/src/containers/hash_table.bend as H
def rm_c(a, -V: Kind(a), f: LRU, +c: U32, t: String) -> LRU & Maybe:
match t:
case SNil{}:
rm_short(a, V, f, c, U32.is_lt(c, H.tag()))
case SCon{d, t2}:
remove_long(a, V, f, SCon{Chr{c}, SCon{d, t2}})
Uses (10):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt
https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/hash_table.bend&name=tag
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=remove_long
https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/containers/lru.bend&name=rm_short