function/macro | since v0.0-927 | clojure.core/>= | Edit |
(>= x)
(>= x y)
(>= x y & more)
Returns true if each successive number argument is less than or equal to the previous one, false otherwise.
(>= 2 1)
;;=> true
(>= 2 2)
;;=> true
(>= 1 2)
;;=> false
(>= 6 5 4 3 2)
;;=> true
Returns non-nil if nums are in monotonically non-increasing order, otherwise false.
(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)))
(core/defmacro ^::ana/numeric >=
([x] true)
([x y] (bool-expr (core/list 'js* "(~{} >= ~{})" x y)))
([x y & more] `(and (>= ~x ~y) (>= ~y ~@more))))