Python StringIO for Clojure

Is there something equivalent to Python StingIO for Clojure?

I am trying to write a report generating / competent programming system similar to Sweave and Pweave for Clojure. I am currently using a temporary file, but I would prefer to use something similar to StringIO.

+4
source share
2 answers

c-out-str is pretty handy.

(let [foo (with-out-str (println "Hello world!"))] foo) 

Additional documentation here

+5
source

All Articles