Skip to content

Instantly share code, notes, and snippets.

@jonathan
Created April 11, 2013 15:37
Show Gist options
  • Save jonathan/5364434 to your computer and use it in GitHub Desktop.
Save jonathan/5364434 to your computer and use it in GitHub Desktop.
processes a passed in dictionary file for the scrabble program
(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