In the current draft, read-directory already returns names one by one,
then (eof-object) at the end. That matches the SRFI 158 definition of a
generator unless I misunderstood something.
SRFI 158 generators can't take arguments, so you need a little let-over-lambda wrapper to provide the directory-object argument. See the code I just posted.
Are you talking about the
generator-that-returns-sublists-of-the-full-list that we discussed much
No, or at least I am not; I don't think the idea makes sense.
John Cowan http://vrici.lojban.org/~cowan email@example.com
There are books that are at once excellent and boring. Those that at
once leap to the mind are Thoreau's Walden, Emerson's Essays, George
Eliot's Adam Bede, and Landor's Dialogues. --Somerset Maugham