Combining infinite ranges

bearophile bearophileHUGS at lycos.com
Wed Jun 2 10:57:37 PDT 2010


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

Bye,
bearophile


More information about the Digitalmars-d mailing list