Created
April 11, 2013 15:37
-
-
Save jonathan/5364434 to your computer and use it in GitHub Desktop.
processes a passed in dictionary file for the scrabble program
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 process-file [file-name line-func letters] | |
(with-open [rdr (BufferedReader. (FileReader. file-name))] | |
(into [] (filter #(line-func letters %) (line-seq rdr))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment