John M. Dlugosz wrote:
> Consider something like a 'map' call, only I want it to be lazy.

map *is* lazy, as are all list builtins that can be lazy (which doesn't
include stuff like sort, which has to look at all items anyway).

>  I know that a 
> list can contain internally iterators that generate elements as needed or 
> perhaps in the background.  But how do you create such a thing?  Something 
> like:
>     @lazy_list := parallel-map { get_info($_) } @filenames;

@lazy_list = { get_info($_) };

I suppose ;-)

Moritz Lenz |

Reply via email to