user=> (def x "Hello!\nMy name is George.\n") #'user/x user=> (prn-str x) "Hello!\nMy name is George.\n\n" nil
Same as pr followed by (newline). Observes *flush-on-newline*
(defn prn-str "prn to a string, returning it" {:tag String :added "1.0"} [& xs] (with-out-str (apply prn xs)))
Comments top
No comments for prn-str. Log in to add a comment.