>

function/macrosince v0.0-927 clojure.core/>Edit
(> x)
(> x y)
(> x y & more)

Details:

Returns true if each successive number argument is less than the previous one, false otherwise.


Examples:

(> 1 2)
;;=> false

(> 2 1)
;;=> true

(> 2 2)
;;=> false

(> 6 5 4 3 2)
;;=> true

See Also:


Source docstring:
Returns non-nil if nums are in monotonically decreasing order,
otherwise false.
Function code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ^boolean >
  ([x] true)
  ([x y] (cljs.core/> x y))
  ([x y & more]
   (if (cljs.core/> x y)
     (if (next more)
       (recur y (first more) (next more))
       (cljs.core/> y (first more)))
     false)))

Macro code @ clojurescript:src/main/clojure/cljs/core.cljc
(core/defmacro ^::ana/numeric >
  ([x] true)
  ([x y] (bool-expr (core/list 'js* "(~{} > ~{})" x y)))
  ([x y & more] `(and (> ~x ~y) (> ~y ~@more))))