pprint-newline

clojure.contrib.pprint

  • (pprint-newline kind)
Print a conditional newline to a pretty printing stream. kind specifies if the
newline is :linear, :miser, :fill, or :mandatory.

Output is sent to *out* which must be a pretty printing writer.

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

(defn pprint-newline
  "Print a conditional newline to a pretty printing stream. kind specifies if the 
newline is :linear, :miser, :fill, or :mandatory. 

Output is sent to *out* which must be a pretty printing writer."
  [kind] 
  (check-enumerated-arg kind #{:linear :miser :fill :mandatory})
  (nl *out* kind))
Vars in clojure.contrib.pprint/pprint-newline: *out* defn

Comments top

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