print to a string, returning it
;; Create a string from the given items and store it in x. user=> (def x (print-str 1 "foo" \b \a \r {:a 2})) #'user/x ;; It's a string. user=> (string? x) true ;; Notice that each item is separated by a space. user=> x "1 foo b a r {:a 2}"
println to a string, returning it
Prints the object(s) to the output stream that is the current value of *out*. print and println p...
print-str