user=> (def x [1 2 3 4 5]) #'user/x user=> x [1 2 3 4 5] ;; Turn that data into a string... user=> (pr-str x) "[1 2 3 4 5]" ;; ...and turn that string back into data! user=> (read-string (pr-str x)) [1 2 3 4 5]
(defn pr-str
"pr to a string, returning it"
{:tag String
:added "1.0"
:static true}
[& xs]
(with-out-str
(apply pr xs)))
Comments top
No comments for pr-str. Log in to add a comment.