while (n–->42) { std::cout << n; }

A Guide to Python Itertools

Those iterables are more powerful than you can possibly imagine.

https://medium.com/@mr_rigden/a-guide-to-python-itertools-82e5a306cdf8