• (max x)
  • (max x y)
  • (max x y & more)
Returns the greatest of its arguments. Like clojure.core/max except that
is uses generic comparison functions implementable for any data type.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/generic/comparison.clj:200 top

(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)))
Vars in clojure.contrib.generic.comparison/max: > defn max reduce
Used in 0 other vars

Comments top

No comments for max. Log in to add a comment.