> Why would my code produce
> something more complicated than a lazy list?
What I meant was that:
i) The use of the generator seems to be trying to
provide the advantages of a lazy list (but I'm not
convinced either that it does, or that these
advantages would be very significant here);
ii) I suspect that the computational complexity
of the generator version is likely to be somewhat
worse than that of generating a list (lazy or
otherwise) ... of which more shortly.
I'm afraid the two comments got telescoped
in my haste to go home.
> Why would my code produce
> something more complicated than a lazy list?
What I meant was that:
i) The use of the generator seems to be trying to
provide the advantages of a lazy list (but I'm not
convinced either that it does, or that these
advantages would be very significant here);
ii) I suspect that the computational complexity
of the generator version is likely to be somewhat
worse than that of generating a list (lazy or
otherwise) ... of which more shortly.
I'm afraid the two comments got telescoped
in my haste to go home.