LAWS.g_rot_hi: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/LAWS.bend as LAWS Lines 295-302 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=295&end_line=302 import Base import bend-kit-collections@0.1.4.1/omap.bend as O def g_rot_hi(-K: Data, -V: Data, k: K, v: V, lo: O.OMap, hi: O.OMap) -> O.OMap: match lo: case O.OTip{}: O.OMap.bin(K, V, k, v, O.OTip{}, hi) case O.OBin{s, lk, lv, +ll, +lh}: O.OMap.rot_hi.pick(K, V, Nat.is_lt(omap_weight(K, V, lh), Nat.mul(2n, omap_weight(K, V, ll))), k, v, lk, lv, ll, lh, hi) 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_hi.pick