Created
November 18, 2009 16:45
-
-
Save dermatthias/238033 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 process-file | |
[file-name line-func line-acc] | |
(reduce line-func line-acc (read-lines file-name))) | |
(defn process-line-data | |
[acc line] | |
(let [l (.split line "\t")] | |
(assoc acc (first l) (vec (rest l))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment