Created
December 3, 2011 23:57
-
-
Save claj/1428555 to your computer and use it in GitHub Desktop.
duck-stream stuff
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
(ns dsstuff | |
"things i used to do in duckstreams in clojure 1.2.0") | |
;;read-lines from files | |
(defn read-lines-from-file [filename] | |
(with-open [rdr (clojure.java.io/reader filename)] | |
(line-seq rdr))) | |
;;thank you Abhinav Sarkar (http://stackoverflow.com/questions/4118123/read-a-very-large-text-file-into-a-list-in-clojure) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment