Saturday, August 12, 2017

TIL with-out-str

with-out-str

Retrieve the contents of println.

Example:

(with-out-str (println "Hello"))
; result "Hello\n"

No comments:

Post a Comment