Created
April 24, 2014 04:54
-
-
Save amalloy/11241974 to your computer and use it in GitHub Desktop.
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
(reduce (fn [mentioned-files file] | |
(if (some #{file} mentioned-files) | |
mentioned-files | |
(let [duplicates (duplicates-of-file file files (:precision options))] | |
(when (seq duplicates) | |
(printf "%s\n" file) | |
(doseq [d duplicates] | |
(printf "%s\n" d)) | |
(printf "\n")) | |
(concat mentioned-files duplicates)))) | |
(), files) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment