Hmap.HMap.size: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/hmap.bend as Hmap Lines 204-211 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=204&end_line=211 import Base def HMap.size(-K: Data, -V: Data, m: HMap) -> Nat: match m: case HNil{}: 0n case HLeaf{hash, entries}: List.length(&2, Entry, entries) case HBranch{lo, hi}: Nat.add(HMap.size(K, V, lo), HMap.size(K, V, hi)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&name=Entry https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&name=HMap