def U16.saturating_add

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

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

985def U16.saturating_add(a: U16, b: U16) -> U16:
986  match a b:
987    case U16{x} U16{y}:
988      U16{U32.min(U32.add(x, y), 65535)}

Uses (3)

Used by (0)

No other definition uses this definition.