In addition to what others have said, I also tend to use doall when
working with agent actions that return sequences (i.e. to force any
computation to happen in the agent's thread and not in the caller's)

Cheers,

Mark

On Wed, Jan 21, 2009 at 7:32 AM, Mark Volkmann
<r.mark.volkm...@gmail.com> wrote:
>
> Can someone describe a situation where it is preferable to use doall
> instead of dorun? I see in the documentation that it "retains the head
> and returns it, thus causing the entire seq to reside in memory at one
> time", but I'm not sure why I'd want that.
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>
> >
>

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