def BigInt.add
import bend-kit-bignum@0.1.0.0/bigint.bend as Bigintimport Base
401def BigInt.add(a: BigInt, b: BigInt) -> BigInt:
402 match a b:
403 case BigInt{+sa, x} BigInt{sb, y}:
404 BigInt.add.go(Bool.xor(sa, sb), sa, x, y)
import bend-kit-bignum@0.1.0.0/bigint.bend as Bigintimport Base
401def BigInt.add(a: BigInt, b: BigInt) -> BigInt:
402 match a b:
403 case BigInt{+sa, x} BigInt{sb, y}:
404 BigInt.add.go(Bool.xor(sa, sb), sa, x, y)