def Int.sat
import bend-kit-int@0.2.0.0/int.bend as Intimport Base
225def Int.sat(low: Bool, +n: Nat, s: Bool) -> Word(n):
226 match low:
227 case True{}:
228 Int.min(n, s)
229 case False{}:
230 Int.max(n, s)
import bend-kit-int@0.2.0.0/int.bend as Intimport Base
225def Int.sat(low: Bool, +n: Nat, s: Bool) -> Word(n):
226 match low:
227 case True{}:
228 Int.min(n, s)
229 case False{}:
230 Int.max(n, s)