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

Reply via email to