Bigint.BigInt.divmod: def of bend-kit-bignum@0.1.0.0 Import: import bend-kit-bignum@0.1.0.0/bigint.bend as Bigint Lines 419-425 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=419&end_line=425 import Base # Truncates toward zero: the remainder takes the dividend's sign. def BigInt.divmod(a: BigInt, b: BigInt) -> Maybe<&1, BigInt & BigInt>: match a b: case BigInt{sa, x} BigInt{sb, Nil{}}: None{} case BigInt{sa, x} BigInt{sb, y}: Some{BigInt.divmod.fin(sa, sb, Mag.divmod(x, y))} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=bend-kit-bignum@0.1.0.0/bigint.bend&name=BigInt https://jend.leeeet.dev/definition.txt?path=bend-kit-bignum@0.1.0.0/bigint.bend&name=BigInt.divmod.fin https://jend.leeeet.dev/definition.txt?path=bend-kit-bignum@0.1.0.0/bigint.bend&name=Mag.divmod