min

functionsince v0.0-927 clojure.core/minEdit
(min x)
(min x y)
(min x y & more)

Details:

Returns the least number argument.


Examples:

(min 1 2 3 4)
;; => 1

Apply it to a collection:

(apply min [1 2 3 4])
;; => 1

See Also:


Source docstring:
Returns the least of the nums.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ^number min
  ([x] x)
  ([x y]
   (cond
     (NaN? x) x
     (NaN? y) y
     (< x y) x
     :else y))
  ([x y & more]
   (reduce min (cljs.core/min x y) more)))