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

From: Jos Koot (jos.koot at telefonica.net)
Date: Tue Dec 9 06:10:05 EST 2008

If I understand well you need port->stream-of-tokens.
Then you could use stream-fold.
However, srfi 41 has port->stream, but not port->stream-of-tokens.
The latter should not take too much work to make by yourself.
Jos

----- Original Message ----- 
From: "Marek Kubica" <marek at xivilization.net>
To: <plt-scheme at list.cs.brown.edu>
Sent: Tuesday, December 09, 2008 10:46 AM
Subject: [plt-scheme] foldl, map, filter with sequences?


> Hi,
> 
> 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?
> 
> regards,
> Marek
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.