Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment wrappingSub

std/ops/num::wrappingSub


Generics

◻ N: WrappingSub

Inputs

⇥ a: Stream<N>
⇥ b: Stream<N>

Outputs

↦ diff: Stream<N>


Substract values from two streams, wrapping on bounds.

Values passed through b are substracted to a and send in diff. This treatment is infaillible and wrap if a - b reach boundary of the data type.