def Int.to_nat
import bend-kit-int@0.2.0.0/int.bend as Intimport Base
476# Signed values below zero have no Nat.
477def Int.to_nat(+n: Nat, +w: Word(n)) -> Maybe<&2, Nat>:
478 Int.to_nat.s(Int.msb(n, w), n, w)
import bend-kit-int@0.2.0.0/int.bend as Intimport Base
476# Signed values below zero have no Nat.
477def Int.to_nat(+n: Nat, +w: Word(n)) -> Maybe<&2, Nat>:
478 Int.to_nat.s(Int.msb(n, w), n, w)