This commit is contained in:
Ingy döt Net 2013-06-05 21:47:54 +00:00
parent 1f1ad49427
commit 6f050a029e
2496 changed files with 37609 additions and 3031 deletions

View file

@ -2,9 +2,9 @@
(def groups
(with-open [r (io/reader wordfile)]
(group-by sort (line-seq r)))
(group-by sort (line-seq r))))
(let [wordlists (sort-by (comp - count) (vals groups)
(let [wordlists (sort-by (comp - count) (vals groups))
maxlength (count (first wordlists))]
(doseq [wordlist (take-while #(= (count %) maxlength) wordlists)]
(println wordlist))