Bigint.Mag.cmp: def of bend-kit-bignum@0.1.0.0 Import: import bend-kit-bignum@0.1.0.0/bigint.bend as Bigint Lines 110-120 of bend-kit-bignum@0.1.0.0/bigint.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-bignum@0.1.0.0/bigint.bend&start_line=110&end_line=120 import Base # Both canonical, so the longer one is larger. def Mag.cmp(a: List<&2, U32>, b: List<&2, U32>) -> Cmp: match a b: case Con{x, xs} Con{y, ys}: Mag.then(Mag.cmp(xs, ys), U32.cmp(x, y)) case Nil{} Nil{}: EQ{} case Nil{} Con{y, ys}: LT{} case Con{x, xs} Nil{}: GT{} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Cmp https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.cmp https://jend.leeeet.dev/definition.txt?path=bend-kit-bignum@0.1.0.0/bigint.bend&name=Mag.then