LAWS.g_rot_lo: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/LAWS.bend as LAWS Lines 286-293 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=286&end_line=293 import Base import bend-kit-collections@0.1.4.1/omap.bend as O def g_rot_lo(-K: Data, -V: Data, k: K, v: V, lo: O.OMap, hi: O.OMap) -> O.OMap: match hi: case O.OTip{}: O.OMap.bin(K, V, k, v, lo, O.OTip{}) case O.OBin{s, hk, hv, +hl, +hh}: O.OMap.rot_lo.pick(K, V, Nat.is_lt(omap_weight(K, V, hl), Nat.mul(2n, omap_weight(K, V, hh))), k, v, lo, hk, hv, hl, hh) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mul https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/LAWS.bend&name=omap_weight https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/omap.bend&name=OMap https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/omap.bend&name=OMap.bin https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/omap.bend&name=OMap.rot_lo.pick