Created
November 29, 2015 19:58
-
-
Save lonnelars/c0b0c1dbc9634a0b57b9 to your computer and use it in GitHub Desktop.
Read lines from stdin and print to stdout in clojure
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
(doseq [line (line-seq (java.io.BufferedReader. *in*))] | |
(println line)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment