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 abs

std/ops/num::abs


Generics

◻ N: Signed

Inputs

⇥ value: Stream<N>

Outputs

↦ abs: Stream<Option<N>>


Give the absolute values of a stream.

If the absolute value cannot fit into the type itself (such as i8 -128 that cannot be turned into 128), none value is returned.