• (>= x)
  • (>= x y)
  • (>= x y & more)
Returns non-nil if nums are in monotonically non-increasing order,
otherwise false.

1 Example top

  • user=> (>= 2 1)
    true
    user=> (>= 2 2)
    true
    user=> (>= 1 2)
    false
    user=> (>= 6 5 4 3 2)
    true
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:1020 top

(defn >=
  "Returns non-nil if nums are in monotonically non-increasing order,
  otherwise false."
  {:inline (fn [x y] `(. clojure.lang.Numbers (gte ~x ~y)))
   :inline-arities #{2}
   :added "1.0"}
  ([x] true)
  ([x y] (. clojure.lang.Numbers (gte x y)))
  ([x y & more]
   (if (>= x y)
     (if (next more)
       (recur y (first more) (next more))
       (>= y (first more)))
     false)))
Vars in clojure.core/>=:
Used in 0 other vars

Comments top

No comments for >=. Log in to add a comment.