Hmap.HMap.entries.put: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/hmap.bend as Hmap Lines 23-33 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=23&end_line=33 import Base def HMap.entries.put( ~K: Data, ~V: Data, ~eq: K -> K -> Bool, xs: List<&2, Entry>, +k: K, +v: V ) -> List<&2, Entry>: match xs: case Nil{}: [Entry{k, v}] case Con{Entry{+key, +val}, +rest}: HMap.bool(List<&2, Entry>, eq(k, key), u => Entry{key, v} <> rest, u => Entry{key, val} <> HMap.entries.put(~K, ~V, ~eq, rest, k, v)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List 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.bool