Awesome. Thanks for the answers, everyone.

On Feb 4, 3:07 pm, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 04.02.2009 um 23:01 schrieb Laurent PETIT:
>
> > this should work for you :
>
> >    (binding [*out* (java.io.StringWriter.)]
> >       (printing-fn)
> >       (= (.toString *out*) "YES"))
>
> There is also with-out-str:
>
> (= "YES" (with-out-str (printing-fn)))
>
> (And for the record: there is also a with-in-str.)
>
> Sincerely
> Meikel
>
>  smime.p7s
> 5KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to