Funx.Predicate.Negative (funx v0.8.4)
View SourcePredicate that checks if a number is strictly negative (< 0).
Returns false for non-numbers.
Options
None required.
Examples
use Funx.Predicate
# Check if balance is negative
pred do
check :balance, Negative
end
# Combined with other predicates
pred do
check :adjustment, IsInteger
check :adjustment, Negative
end