printf

added
1.0

ns
clojure.core

type
function

(printf fmt & args)

Prints formatted output, as per format

                (printf "1 + 2 is %s%n" 3)
            
                ;; Click the link to clojure.core/format under See also for
;; more extensive examples.  printf and format take the same
;; arguments -- the difference is that format returns a formatted
;; string, whereas printf sends the formatted string to *out*.

;; Also note that printf output is buffered, and does not automatically
;; flush at any time, not even when printing newlines.  Thus the last few lines
;; of output may never appear if your program exits before the buffer is
;; flushed.  Use (flush) or a (println ...) call to force flushing of the buffer.