Skip to content

Instantly share code, notes, and snippets.

@dermatthias
Created November 18, 2009 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dermatthias/238033 to your computer and use it in GitHub Desktop.
Save dermatthias/238033 to your computer and use it in GitHub Desktop.
(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