Combining infinite ranges

Philippe Sigaud philippe.sigaud at gmail.com
Wed Jun 2 12:29:42 PDT 2010


On Wed, Jun 2, 2010 at 19:57, bearophile <bearophileHUGS at lycos.com> wrote:

> Philippe Sigaud:
> > What, do you also need the no-arg version of iota?
> >
> > :-p
>
> I'd like a generator (range) similar to the Python itertools.count, that
> yields numbers starting from the given number (defaulting to zero) and just
> goes on and on. You can use it in many situations:
> http://docs.python.org/library/itertools.html#itertools.count
>
>
Yes, it's handy. It's one of the first range I made, a year ago.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20100602/9e1073d0/attachment.html>


More information about the Digitalmars-d mailing list