Returns the greatest of its arguments. Like clojure.core/max except that
is uses generic comparison functions implementable for any data type.
(defn max "Returns the greatest of its arguments. Like clojure.core/max except that is uses generic comparison functions implementable for any data type." ([x] x) ([x y] (if (> x y) x y)) ([x y & more] (reduce max (max x y) more)))
Comments top
No comments for max. Log in to add a comment.