def Int.show

bend-kit-int@0.2.0.0 · int.bend:366

import bend-kit-int@0.2.0.0/int.bend as Int
import Base

366def Int.show(+n: Nat, s: Bool, r: U32, +w: Word(n)) -> String:
367  match s:
368    case True{}:
369      Int.show.if(Int.msb(n, w), n, Int.bits(n, U32.to_nat(Radix.clamp(r))), w)
370    case False{}:
371      Int.show.u(n, Int.bits(n, U32.to_nat(Radix.clamp(r))), w)

Uses (11)

Used by (2)