1.2.0 permalink Arrow_down_16x16
  • (min x)
  • (min x y)
  • (min x y & more)
Returns the least of its arguments. Like clojure.core/min 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:208 top

(defn min
  "Returns the least of its arguments. Like clojure.core/min 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 min (min x y) more)))
Vars in clojure.contrib.generic.comparison/min: < defn min reduce
Used in 0 other vars

Comments top

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