chickadee » scheme » <=

(= z[1] z[2] z[3] ...)procedure
(< x[1] x[2] x[3] ...)procedure
(> x[1] x[2] x[3] ...)procedure
(<= x[1] x[2] x[3] ...)procedure
(>= x[1] x[2] x[3] ...)procedure

These procedures return #t if their arguments are (respectively): equal, monotonically increasing, monotonically decreasing, monotonically nondecreasing, or monotonically nonincreasing.

These predicates are required to be transitive.

Note: The traditional implementations of these predicates in Lisp-like languages are not transitive.

Note: While it is not an error to compare inexact numbers using these predicates, the results may be unreliable because a small inaccuracy may affect the result; this is especially true of = and zero?. When in doubt, consult a numerical analyst.