• (pprint object)
  • (pprint object writer)
Pretty print object to the optional output writer. If the writer is not provided,
print the object to the currently bound value of *out*.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/pprint/pprint_base.clj:229 top

(defn pprint 
  "Pretty print object to the optional output writer. If the writer is not provided, 
print the object to the currently bound value of *out*."
  ([object] (pprint object *out*)) 
  ([object writer]
     (with-pretty-writer writer
       (binding [*print-pretty* true]
         (binding-map (if (or (not (= *print-base* 10)) *print-radix*) {#'pr pr-with-base} {}) 
           (write-out object)))
       (if (not (= 0 (get-column *out*)))
         (.write *out* (int \newline))))))
Vars in clojure.contrib.pprint/pprint: *print-base* *print-radix* write-out *out* = binding defn int not or
Used in 5 other vars pp pprint pp pps wtf

Comments top

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