You're viewing version 1.2.0 of <. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16
  • (< x)
  • (< x y)
  • (< x y & more)
Returns non-nil if nums are in monotonically increasing order,
otherwise false.

1 Example top

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

See Also top

  • 0
    clojure.core/=

    Equality. Returns true if x equals y, false if not. Same as Java x.

  • 0
    clojure.core/not=

    Same as (not (= obj1 obj2))

  • 0
    clojure.core/>

    Returns non-nil if nums are in monotonically decreasing order, othe

  • 0
    clojure.core/<=

    Returns non-nil if nums are in monotonically non-decreasing order,

  • 0
    clojure.core/>=

    Returns non-nil if nums are in monotonically non-increasing order,

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:751 top

(defn <
  "Returns non-nil if nums are in monotonically increasing order,
  otherwise false."
  {:inline (fn [x y] `(. clojure.lang.Numbers (lt ~x ~y)))
   :inline-arities #{2}
   :added "1.0"}
  ([x] true)
  ([x y] (. clojure.lang.Numbers (lt 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/<: defn first next

Comments top

No comments for <. Log in to add a comment.