This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn maxcat [coll] | |
(->> coll (map str) sort reverse (apply str))) | |
(maxcat [1 2 3 4 5 6 7 8 9]) ;=> 987654321 | |
(maxcat [12 34 56 199]) ;=> 563419912 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(println "Hello World") | |
(map inc (range 10)) | |
(def numbers [10 27 26 21 22 22 45 34 59 60]) | |
(/ (apply + 0.0 numbers) (count numbers)) | |
(apply min numbers) |