Last active
November 10, 2015 07:42
-
-
Save velveteer/c7b63b1ee5b97cb10217 to your computer and use it in GitHub Desktop.
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
(ns longestlines) | |
(use 'clojure.string) | |
(let [files (map #(trim %) (split (slurp (first *command-line-args*)) #"\n"))] | |
(println (join "\n" (take (Integer. (first files)) (sort-by count > files))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment