Python's StringIO for Clojure
Solution
with-out-str is pretty handy.
(let [foo (with-out-str (println "Hello world!"))]
foo)
More documentation here
OTHER TIPS
java.io.StringWriter: http://download.oracle.com/javase/6/docs/api/java/io/StringWriter.html
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow