ClojureDocs

Nav

Namespaces

print-str

clojure.core

Available since 1.0 (source)
  • (print-str & xs)
print to a string, returning it
1 Example
;; 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}"

See Also

println to a string, returning it

Added by boxie

Prints the object(s) to the output stream that is the current value of *out*. print and println p...

Added by lbeschastny
0 Notes
No notes for print-str