[plt-scheme] foldl, map, filter with sequences?

From: Jens Axel Soegaard (jensaxel at soegaard.net)
Date: Tue Dec 9 11:32:26 EST 2008

Marek Kubica wrote:
> I have a rather large list which would be handled best if I wouldn't
> need to create it as one big thing but rather compute on need (it is
> the output of string-tokenize applied on a 350 MB file). As I am using
> foldl in my program, I don't need all items at once. Is there a way to
> feed a sequence into foldl? Or maybe there a sequence-foldl?
>   

Maybe you it is time to try comprehensions?

http://docs.plt-scheme.org/guide/for.html

-- 
Jens Axel Søgaard



Posted on the users mailing list.