def Int.neg_if
import bend-kit-int@0.2.0.0/int.bend as Intimport Base
92def Int.neg_if(+n: Nat, c: Bool, w: Word(n)) -> Word(n):
93 match c:
94 case True{}:
95 Int.neg(n, w)
96 case False{}:
97 w
import bend-kit-int@0.2.0.0/int.bend as Intimport Base
92def Int.neg_if(+n: Nat, c: Bool, w: Word(n)) -> Word(n):
93 match c:
94 case True{}:
95 Int.neg(n, w)
96 case False{}:
97 w