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 wrappingNeg

std/ops/num::wrappingNeg


Generics

◻ N: WrappingNeg

Inputs

⇥ value: Stream<N>

Outputs

↦ neg: Stream<N>


Give negation of streamed values, wrapping on bounds.

This treatment is infaillible and wrap if -value reach boundary of the data type.