Method in arith · Saturating coil-stdlib

Saturating::saturating_add

fn saturating_add(S a, S b) -> S
Import
use arith::{Saturating};
Source: src/arith.hy

a + b clamped to the type’s range.

Parameters#

NameType
aS
bS

Returns#

S

See also#

↑ ↓ navigate ↵ open