Combining infinite ranges
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Wed Jun 2 17:31:37 PDT 2010
On 06/02/2010 07:24 PM, bearophile wrote:
> Andrei Alexandrescu:
>> iota(n, n.max) is close. Well, it's not infinite, but cycle(iota(n,
>> n.max)) is. Probably a version using BigInt would be most sensible.
>
>
> An enumerate() too can be useful (not much tested yet):
No need to write enumerate() - it's zip(iota(0, size_t.max), r).
Andrei
More information about the Digitalmars-d
mailing list