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 isPositive

std/ops/num::isPositive


Generics

◻ N: Signed

Inputs

⇥ value: Stream<N>

Outputs

↦ positive: Stream<bool>


Tells if a stream contains positive values.

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