Created
May 13, 2019 15:01
-
-
Save andrewwhitehouse/9a14a5b6e66c6596c4d39c6aab88c258 to your computer and use it in GitHub Desktop.
Purely Functional Issue 326
This file contains hidden or 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment