Arrays and collections / Arrays

(def numbers [2 3 5 7 11])

;; min and max take arguments, not a collection — apply spreads it out
(def min-value (apply min numbers))
;; min-value is 2
(def max-value (apply max numbers))
;; max-value is 11

(println min-value)
(println max-value)

;; max-key picks the element whose computed key is the largest
(println (apply max-key count ["bb" "a" "cccc"]))    ; cccc