def Int.abs

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

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

99def Int.abs(+n: Nat, +w: Word(n)) -> Word(n):
100  Int.neg_if(n, Int.msb(n, w), w)

Uses (4)

Used by (2)