Created
November 11, 2010 05:17
-
-
Save kyleburton/672049 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(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