• Forum
  • Lounge
  • Python Generators vs C++ Input Iterators

 
Python Generators vs C++ Input Iterators

http://ideone.com/wUasfM
As far as I know, Python generators can't skip generating values. If they can, please tell me how :)

Interestingly though, in this example there's a pattern with the last digit of the generated numbers. Completely unintentional, but it's there.
Last edited on
Topic archived. No new replies allowed.