• (with-in-reader f & body)
Opens a PushbackReader on f, binds it to *in*, and evaluates body.

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

(defmacro with-in-reader
  "Opens a PushbackReader on f, binds it to *in*, and evaluates body."
  [f & body]
  `(with-open [stream# (PushbackReader. (reader ~f))]
     (binding [*in* stream#]
       ~@body)))
Vars in clojure.contrib.duck-streams/with-in-reader: defmacro *in* apply binding concat list seq vector with-open
Used in 0 other vars

Comments top

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