On Mon, 2011-12-12 at 10:21 -0800, Simone Mosciatti wrote: > (defn lazy-reader [fl] > (lazy-seq > (cons (.read fl) (lazy-reader fl)))) > > Can work ? (0.03696 ms for 500 char) > Possible problem ?
You need a termination case; your lazy-reader currently always yields an infinite sequence. -- Stephen Compall ^aCollection allSatisfy: [:each|aCondition]: less is better -- 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