Clojure’s `>=` predicate tests whether arguments decrease monotonically from left to right, allowing adjacent values to be equal. It returns a Boolean and accepts one or more arguments. section 6.3
Use the operator according to these arity and input rules:
- With one argument, `>=` returns `true`, regardless of the argument’s type. section 6.3
- With two or more arguments, every argument must be numeric; the operator returns `true` only when each left-to-right pair satisfies greater-than-or-equal ordering. section 6.3
- Equality is allowed using the same numeric-equality semantics as `==`; calling `>=` with no arguments throws `clojure.lang.ArityException`, while a nonnumeric multi-argument call throws `java.lang.ClassCastException`. section 6.3
Listing 6.3. → Comparison Operators, Ordering
(< ([x]) ([x y]) ([x y & more])) (> ([x]) ([x y]) ([x y & more])) (<= ([x]) ([x y]) ([x y & more])) (>= ([x]) ([x y]) ([x y & more]))
The arity listing makes the one-, two-, and variadic argument forms of comparison operators directly browsable. section 6.3
