LAWS.g_balance.if: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/LAWS.bend as LAWS Lines 304-314 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=304&end_line=314 import Base import bend-kit-collections@0.1.4.1/omap.bend as O def g_balance.if( -K: Data, -V: Data, heavy_hi: Bool, heavy_lo: Bool, k: K, v: V, lo: O.OMap, hi: O.OMap ) -> O.OMap: match heavy_hi heavy_lo: case True{} _: g_rot_lo(K, V, k, v, lo, hi) case False{} True{}: g_rot_hi(K, V, k, v, lo, hi) case False{} False{}: O.OMap.bin(K, V, k, v, lo, hi) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/LAWS.bend&name=g_rot_hi https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/LAWS.bend&name=g_rot_lo 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