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

printf

clojure.core

  • (printf fmt & args)
Prints formatted output, as per format

2 Examples top

  • (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*.
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:4577 top

(defn printf
  "Prints formatted output, as per format"
  {:added "1.0"}
  [fmt & args]
  (print (apply format fmt args)))
Vars in clojure.core/printf: apply defn format print

Comments top

No comments for printf. Log in to add a comment.