Skip to content

Instantly share code, notes, and snippets.

@andrewwhitehouse
Created May 13, 2019 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewwhitehouse/9a14a5b6e66c6596c4d39c6aab88c258 to your computer and use it in GitHub Desktop.
Save andrewwhitehouse/9a14a5b6e66c6596c4d39c6aab88c258 to your computer and use it in GitHub Desktop.
Purely Functional Issue 326
(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