-
-
Save bhenry/62e3f6c5c8cd3ddd4d5e 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
(defn get-images [dir] | |
(filter #(or | |
(re-find #".gif$" (.getName %)) | |
(re-find #".jpg$" (.getName %)) | |
(re-find #".png$" (.getName %))) (get-files dir))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment