Hmap.HMap.get.go: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/hmap.bend as Hmap Lines 116-140 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=116&end_line=140 import Base def HMap.get.go( ~K: Data, ~V: Data, ~eq: K -> K -> Bool, +n: Nat, +mask: U32, m: HMap, +hash: U32, +k: K ) -> Maybe<&2, V>: match n: case 0n: match m: case HNil{}: None{} case HLeaf{oldhash, entries}: HMap.entries.get(~K, ~V, ~eq, entries, k) case HBranch{lo, hi}: None{} case 1n+p: match m: case HNil{}: None{} case HLeaf{oldhash, entries}: HMap.bool(Maybe<&2, V>, U32.is_eq(oldhash, hash), u => HMap.entries.get(~K, ~V, ~eq, entries, k), u => None{}) case HBranch{+lo, +hi}: HMap.bool(Maybe<&2, V>, U32.is_eq((hash .&. mask : U32), 0), u => HMap.get.go(~K, ~V, ~eq, p, (mask << 1n : U32), lo, hash, k), u => HMap.get.go(~K, ~V, ~eq, p, (mask << 1n : U32), hi, hash, k)) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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.get