pprint-vector

clojure.contrib.pprint

  • (pprint-vector avec)

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/dispatch.clj:80 top

(defn pprint-vector [avec]
  (pprint-logical-block :prefix "[" :suffix "]"
    (loop [aseq (seq avec)]
      (when aseq
	(write-out (first aseq))
	(when (next aseq)
	  (.write ^java.io.Writer *out* " ")
	  (pprint-newline :linear)
	  (recur (next aseq)))))))
Vars in clojure.contrib.pprint/pprint-vector: pprint-logical-block pprint-newline write-out *out* defn first loop next when
Used in 0 other vars

Comments top

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