• (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:5047 top

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

Comments top

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