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 wrappingMul

std/ops/num::wrappingMul


Generics

◻ N: WrappingMul

Inputs

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

Outputs

↦ prod: Stream<N>


Multiply values from two streams, wrapping on bounds.

Values passed through a & b are multiplied and send in prod. This treatment is infaillible and wrap if a × b reach boundary of the data type.