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.