Bin.cmp: def of bend-lawful-stdlib@0.1.0.0 Import: import bend-lawful-stdlib@0.1.0.0/src/float/bin.bend as Bin Lines 150-169 of bend-lawful-stdlib@0.1.0.0/src/float/bin.bend: https://jend.leeeet.dev/read.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/bin.bend&start_line=150&end_line=169 import Base def cmp(a: Bin, b: Bin) -> Cmp: match a b: case BZ{} BZ{}: EQ{} case BZ{} B0{y}: cmp(BZ{}, y) case BZ{} B1{y}: LT{} case B0{x} BZ{}: cmp(x, BZ{}) case B1{x} BZ{}: GT{} case B0{x} B0{y}: cmp.fin(False{}, False{}, cmp(x, y)) case B0{x} B1{y}: cmp.fin(False{}, True{}, cmp(x, y)) case B1{x} B0{y}: cmp.fin(True{}, False{}, cmp(x, y)) case B1{x} B1{y}: cmp.fin(True{}, True{}, cmp(x, y)) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Cmp https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/bin.bend&name=Bin https://jend.leeeet.dev/definition.txt?path=bend-lawful-stdlib@0.1.0.0/src/float/bin.bend&name=cmp.fin