1.2.0 permalink Arrow_down_16x16

with-pprint-dispatch

clojure.contrib.pprint

  • (with-pprint-dispatch function & body)
Execute body with the pretty print dispatch function bound to function.

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:259 top

(defmacro with-pprint-dispatch 
  "Execute body with the pretty print dispatch function bound to function."
  [function & body]
  `(binding [*print-pprint-dispatch* ~function]
     ~@body))
Vars in clojure.contrib.pprint/with-pprint-dispatch: *print-pprint-dispatch* defmacro apply binding concat list seq vector
Used in 1 other vars with-pprint-dispatch

Comments top

No comments for with-pprint-dispatch. Log in to add a comment.