LAWS.hmap_hashed: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/LAWS.bend as LAWS Lines 503-511 of bend-kit-collections@0.1.4.1/LAWS.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-collections@0.1.4.1/LAWS.bend&start_line=503&end_line=511 import Base import bend-kit-collections@0.1.4.1/hmap.bend as M # Every key of xs hashes to h. def hmap_hashed( ~K: Data, ~V: Data, ~hash: K -> U32, xs: List<&2, M.Entry>, +h: U32 ) -> Bool: match xs: case Nil{}: True{} case Con{M.Entry{key, val}, rest}: U32.is_eq(h, hash(key)) && hmap_hashed(~K, ~V, ~hash, rest, h) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and 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=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/hmap.bend&name=Entry