min

added
1.0

ns
clojure.core

type
function

(min x) (min x y) (min x y & more)

Returns the least of the nums.

                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