Hmap.HMap.del.go: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/hmap.bend as Hmap Lines 172-196 of bend-kit-collections@0.1.4.1/hmap.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&start_line=172&end_line=196 import Base def HMap.del.go( ~K: Data, ~V: Data, ~eq: K -> K -> Bool, +n: Nat, +mask: U32, m: HMap, +hash: U32, +k: K ) -> HMap: match n: case 0n: match m: case HNil{}: HNil{} case HLeaf{oldhash, entries}: HMap.leaf(K, V, oldhash, HMap.entries.del(~K, ~V, ~eq, entries, k)) case HBranch{lo, hi}: HBranch{lo, hi} case 1n+p: match m: case HNil{}: HNil{} case HLeaf{+oldhash, +entries}: HMap.bool(HMap, U32.is_eq(oldhash, hash), u => HMap.leaf(K, V, oldhash, HMap.entries.del(~K, ~V, ~eq, entries, k)), u => HLeaf{oldhash, entries}) case HBranch{+lo, +hi}: HMap.bool(HMap, U32.is_eq((hash .&. mask : U32), 0), u => HMap.join(K, V, HMap.del.go(~K, ~V, ~eq, p, (mask << 1n : U32), lo, hash, k), hi), u => HMap.join(K, V, lo, HMap.del.go(~K, ~V, ~eq, p, (mask << 1n : U32), hi, hash, k))) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shln https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&name=HMap https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&name=HMap.bool https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&name=HMap.entries.del https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&name=HMap.join https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&name=HMap.leaf