Re: Lazy sequences to replace looping?

2012-09-13 Thread Geo
Thanks. I investigated it, which led to another related question as to whether lazy seqs are always chunked (it appears not!). I posted this on stack overflow here: http://stackoverflow.com/questions/12412038/in-clojure-are-lazy-seqs-always-chunked -- You received this message because you

Lazy sequences to replace looping?

2012-09-12 Thread Geo
Hello, I am just getting started with Clojure and I had a question. I have to following code: (get-rss-entry (get-rss-feeds h-res) url) The call to get-rss-feeds returns a lazy sequence of URLs of feeds that I need to examine. The call to get-rss-entry looks for a particular entry (whose

Re: Lazy sequences to replace looping?

2012-09-12 Thread gaz jones
You may find this useful: http://blog.fogus.me/2010/01/22/de-chunkifying-sequences-in-clojure/ loop-recur might be the best way to do it. On Tue, Sep 11, 2012 at 11:16 PM, Geo ggrigor...@gmail.com wrote: Hello, I am just getting started with Clojure and I had a question. I have to following