On Fri, Nov 27, 2009 at 01:52:05PM +0200, Miron Brezuleanu wrote:

>not sure if it works here, but what about adapting advice from Stuart
>Halloway's Programming Clojure (pages 159-160, 'Losing your head') and
>use a function returning a sequence instead of a 'bound by let' name
>(the actual advice in the book is to use functions returning sequences
>instead of vars holding the head)? This is basically a delayed
>evaluation trick similar to your workaround with atoms.

That seems to work as long as you aren't using the sequence as part of
IO where the sequence is consumed in the middle.  I think the atom
trick is needed for my case as far as I can tell.

David

-- 
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