ClojureDocs

Nav

Namespaces

<

clojure.core

Available since 1.0 (source)
  • (< x)
  • (< x y)
  • (< x y & more)
Returns non-nil if nums are in monotonically increasing order,
otherwise false.
1 Example
user=> (< 1 2)
true
user=> (< 2 1)
false
user=> (< 1.5 2)
true
user=> (< 2 3 4 5 6)
true
user=> (< 1 1/2)
false
See Also

Equality. Returns true if x equals y, false if not. Same as Java x.equals(y) except it also works ...

Added by alimoeeny

Same as (not (= obj1 obj2))

Added by alimoeeny

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

Added by alimoeeny

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

Added by rob

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

Added by rob
1 Note
    By , created 11.2 years ago

    I think the docstring for < should say "strictly increasing" instead of "monotonically increasing." In contrast, I think <= is the function that tests for "monotonically increasing."

    Here's a quote from wikitionary...

    monotonic increasing: (mathematics, of a function) always increasing or remaining constant, and never decreasing; contrast this with strictly increasing