Skip to content

Instantly share code, notes, and snippets.

@kyleburton
Created November 11, 2010 05:17
Show Gist options
  • Save kyleburton/672049 to your computer and use it in GitHub Desktop.
Save kyleburton/672049 to your computer and use it in GitHub Desktop.
(reduce
(fn [res counts]
(merge-with + res counts))
(pmap (fn [[start end]]
(count-area-codes
(io/read-lines-from-file-segment inp-file start end)))
(partition 2 1
(io/byte-partitions-at-line-boundaries
inp-file
(* 1024 1024)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment