oh, so does iterators.jl work for tasks?

i guess i'm confused why julia needs three different ways of doing what to 
me seem like very similar things.  why do iterators, tasks and lazy 
sequences all need to exist?

i may be missing something obvious...

andrew  

On Friday, 7 March 2014 21:10:22 UTC-3, Mike Innes wrote:
>
> Sorry if I've misunderstood you, but I take it you're referring 
> specifically to using Tasks as generators (via produce()/consume()) and 
> iterating over them?
>
> Lazy.jl doesn't use tasks for its implementation, no, but you can turn a 
> task (or indeed any iterator) into a lazy list using seq() and use any of 
> these functions on it that way. You can also iterate over lazy lists 
> themselves just like tasks.
>
> You're right that many of these functions are useful for iterators/tasks 
> too, so there's a similar set of functionality in Iterators.jl.
>

Reply via email to