1.3.0 permalink 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:4204 top

(defn print-str
  "print to a string, returning it"
  {:tag String
   :added "1.0"
   :static true}
  [& xs]
     (apply print xs)))
Vars in clojure.core/print-str:
Used in 0 other vars

Comments top

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