def BigInt.show

bend-kit-bignum@0.1.0.0 · bigint.bend:467

import bend-kit-bignum@0.1.0.0/bigint.bend as Bigint
import 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{})

Uses (6)

Used by (3)