max

function/macrosince v0.0-927 clojure.core/maxEdit
(max x)
(max x y)
(max x y & more)

Details:

Returns the greatest number argument.


See Also:


Source docstring:
Returns the greatest of the nums.
Function code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ^number max
  ([x] x)
  ([x y] (cljs.core/max x y))
  ([x y & more]
   (reduce max (cljs.core/max x y) more)))

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