Pretty much any lazy-seq thats reading data from somewhere that might give
up on you if you take to long. For example: Your using line-seq to read from
a socket, but the sequence wont be read through until the user does
something.

On Tue, Jan 20, 2009 at 3:32 PM, 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.
>
> >
>


-- 
-Nate

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