On Tue, Dec 13, 2011 at 11:33 PM, Simone Mosciatti <mweb....@gmail.com> wrote:
> Where by now:
> (defn lazy-reader [fl]
>     (assert ...)
>     (lazy-seq
>         (cons (.read fl) (lazy-reader fl))))
>
> The first one ?

Er, buffering of the I/O is probably preferable, but that would
probably work OK in many cases. Just removing the
(clojure.java.io/reader ...) wrapping the argument in the code I wrote
will make it take the reader directly as its argument.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to