with-out-append-writer

clojure.contrib.duck-streams

  • (with-out-append-writer f & body)
Like with-out-writer but appends to file.

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/duck_streams.clj:287 top

(defmacro with-out-append-writer
  "Like with-out-writer but appends to file."
  [f & body]
  `(with-open [stream# (append-writer ~f)]
     (binding [*out* stream#]
       ~@body)))
Vars in clojure.contrib.duck-streams/with-out-append-writer: defmacro *out* apply binding concat list seq vector with-open
Used in 0 other vars

Comments top

No comments for with-out-append-writer. Log in to add a comment.