Hmap.HMap.leaf: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/hmap.bend as Hmap Lines 148-154 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=148&end_line=154 import Base # An emptied bucket becomes HNil. def HMap.leaf(-K: Data, -V: Data, +hash: U32, xs: List<&2, Entry>) -> HMap: match xs: case Nil{}: HNil{} case Con{e, rest}: HLeaf{hash, e <> rest} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 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