Skip to content

Instantly share code, notes, and snippets.

@lonnelars
Created November 29, 2015 19:58
Show Gist options
  • Save lonnelars/c0b0c1dbc9634a0b57b9 to your computer and use it in GitHub Desktop.
Save lonnelars/c0b0c1dbc9634a0b57b9 to your computer and use it in GitHub Desktop.
Read lines from stdin and print to stdout in clojure
(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