cljs.pprint/formatter-out

macrosince v0.0-3255 clojure.pprint/formatter-outEdit
(formatter-out format-in)

Source docstring:
Makes a function which can directly run format-in. The function is
fn [& args] ... and returns nil. This version of the formatter macro is
designed to be used with *out* set to an appropriate Writer. In particular,
this is meant to be used as part of a pretty printer dispatch method.

format-in can be either a control string or a previously compiled format.
Source code @ clojurescript:src/main/cljs/cljs/pprint.cljc
(defmacro formatter-out
  [format-in]
  `(let [format-in# ~format-in
         cf# (if (string? format-in#) (cljs.pprint/cached-compile format-in#) format-in#)]
     (fn [& args#]
       (let [navigator# (cljs.pprint/init-navigator args#)]
         (cljs.pprint/execute-format cf# navigator#)))))