Funx.Predicate.Positive (funx v0.8.4)
View SourcePredicate that checks if a number is strictly positive (> 0).
Returns false for non-numbers.
Options
None required.
Examples
use Funx.Predicate
# Check if amount is positive
pred do
check :amount, Positive
end
# Combined with integer check
pred do
check :count, IsInteger
check :count, Positive
end