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 mul

std/ops/num::mul


Generics

◻ N: Mul

Inputs

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

Outputs

↦ prod: Stream<N>


Multiply values from two streams.

Values passed through a & b are multiplied and send in prod. This treatment is infaillible but output may overflow if a × b is out of bounds for the data type.