min

function/macrosince 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.
Function code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ^number min
  ([x] x)
  ([x y] (cljs.core/min x y))
  ([x y & more]
   (reduce min (cljs.core/min x y) more)))

Macro code @ clojurescript:src/main/clojure/cljs/core.cljc
(core/defmacro ^::ana/numeric min
  ([x] x)
  ([x y] `(let [x# ~x, y# ~y]
            (~'js* "((~{} < ~{}) ? ~{} : ~{})" x# y# x# y#)))
  ([x y & more] `(min (min ~x ~y) ~@more)))