Treatment wrappingAdd
std/ops/num::wrappingAdd
Generics
◻ N:
WrappingAdd
Inputs
⇥ a:
Stream<N>
⇥ b:
Stream<N>
Outputs
↦ sum:
Stream<N>
Add values from two streams, wrapping on bounds.
Values passed through a
& b
are added and send in sum
.
This treatment is infaillible and wrap if a + b
reach boundary of the data type.