def BigInt.show
import bend-kit-bignum@0.1.0.0/bigint.bend as Bigintimport Base
467def BigInt.show(x: BigInt) -> String:
468 match x:
469 case BigInt{s, Nil{}}:
470 "0"
471 case BigInt{True{}, m}:
472 SCon{'-', Mag.show(m, SNil{})}
473 case BigInt{False{}, m}:
474 Mag.show(m, SNil{})