Omap.OMap.rot_lo: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/omap.bend as Omap Lines 62-73 of bend-kit-collections@0.1.4.1/omap.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-collections@0.1.4.1/omap.bend&start_line=62&end_line=73 import Base # The hi side is too heavy: move weight toward lo. def OMap.rot_lo( -K: Data, -V: Data, k: K, v: V, lo: OMap, hi: OMap ) -> OMap: match hi: case OTip{}: OMap.bin(K, V, k, v, lo, OTip{}) case OBin{s, hk, hv, +hl, +hh}: OMap.rot_lo.pick(K, V, U32.is_lt((OMap.size(K, V, hl) + 1 : U32), (2 * (OMap.size(K, V, hh) + 1) : U32)), k, v, lo, hk, hv, hl, hh) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.mul 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 https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/omap.bend&name=OMap.size