Guile Mailing List Archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scheme style auto-resizing hashtable (fwd)



> stream-map is well-known (and returns another stream), stream-for-each
> would be pretty useless, as you'd generate even more garbage than if
> you were just processing a normal list.

Why would stream-for-each be useless? Isn't it better than a list
since you need not have the complete list in memory, but garbage
collection can collect the beginning of the list if so needed?

I thought I could use stream to go through entries in a database. I do
not want to have a list of all database contents in memory to use
for-each.

-- 
Marko Kohtala - Marko.Kohtala@ntc.nokia.com, Marko.Kohtala@hut.fi

Guile Home | Main Index | Thread Index