zero?
tests whether the provided forms are numeric zero
Usage:
(zero? form+) (!zero? form+) (is-zero form)
If all forms evaluate to zero (0, 0.0, or 0/x), then this function will return #t (true). The first non-zero will result in the function returning #f (false).
An Example
(zero? (- 3 2 1) 0 0/1 (/ 3 3))
This example will return #f (false) because the last form evaluates to 1.
Like most predicates, this function can also be negated by prepending the !
character. This means that all the provided forms must not be zero.
(!zero? "hello" [99])
This example will return #t (true).