The print-str function will return a string similar to the one that REPL will report if asked to evaluate the argument, for example. for human consumption. The str function calls the object's .toString object. In the case of a string argument, the result will be the same as you specify.
This does not apply to other objects at all.
((juxt print-str str) 1N) ;=> ["1N" "1"] ((juxt print-str str) (java.util.Date.)) ;=> ["#inst \"2013-07-19T01:47:00.784-00:00\"" "Thu Jul 18 20:47:00 CDT 2013"]
source share