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 neg

std/ops/num::neg


Generics

◻ N: Neg

Inputs

⇥ value: Stream<N>

Outputs

↦ neg: Stream<N>


Give negation of streamed values

This treatment is infaillible but output may overflow if -value is out of bounds for the data type.