On Wed, 2012-12-12 at 19:57 -0800, Frank Siebenlist wrote: > In your example you have bs = (read-block-seq r), > where "bs is a lazy seq of Java char arrays…" > > Does that imply that bs is an immutable seq? > That I can reread - peek at the first chars without consuming?
Absolutely. > Also, can it be used with stdin? You can apply it to stdin, but... > Can I use it for interactive input from a terminal until the user sends > CTRL-D/EOF? No line-oriented or multiple-stream coordination features are included, so you would still need to write a new loop here. clojure.core provides `line-seq', which, for line-buffered streams like stdin, would provide the functionality you want. -- Stephen Compall "^aCollection allSatisfy: [:each | aCondition]": less is better than -- 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