You're viewing version 1.2.0 of print-str. The latest stable version of Clojure Core is 1.3.0.
1.2.0 Arrow_down_16x16



  • (print-str & xs)
print to a string, returning it

1 Example top

  • ;; Create a string from the given items and store it in x.
    user=> (def x (print-str 1 "foo" \b \a \r {:a 2}))
    ;; It's a string.
    user=> (string? x)
    ;; Notice that each item is separated by a space.
    user=> x
    "1 foo b a r {:a 2}"
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:3710 top

(defn print-str
  "print to a string, returning it"
  {:tag String
   :added "1.0"}
  [& xs]
     (apply print xs)))
Vars in clojure.core/print-str: apply defn print with-out-str
Used in 2 other vars derive list-model

Comments top

No comments for print-str. Log in to add a comment.