ClojureDocs

Nav

Namespaces

min

clojure.core

Available since 1.0 (source)
  • (min x)
  • (min x y)
  • (min x y & more)
Returns the least of the nums.
2 Examples
user=> (min 1 2 3 4 5)  
1
user=> (min 5 4 3 2 1)
1
user=> (min 100)
100
;; If elements are already in a sequence, use apply
user=> (apply min [1 2 3 4 3])
1
user=> (apply min '(4 3 5 6 2))
2
See Also

Returns the greatest of the nums.

Added by adereth

Returns the x for which (k x), a number, is least. If there are multiple such xs, the last one is...

Added by adereth
0 Notes
No notes for min