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 isNegative

std/ops/num::isNegative


Generics

◻ N: Signed

Inputs

⇥ value: Stream<N>

Outputs

↦ negative: Stream<bool>


Tells if a stream contains negative values.

Output true for strictly negative integers, and false for 0 and positive ones.
ℹ️ For floating types (f32 and f64), NaN values gives false, -INFINITY and -0.0 gives true.