Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

sumSaturating

🌌numerics.sumSaturating

monoid of numeric with infix +^ operation. Will create sum of all elements it
is applied to, stopping at max/min value in case of overflow.


redefines Monoid.e:
identity element

§infix ==(a T, b T)
 => 
bool
:
Object


redefines Monoid.infix ==:
equality operation

§infix ∙(a T, b T)
 => 
T
:
Object


redefines Monoid.infix ∙:
associative operation