Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote:
Attached is a quick example. It is "similar" to your problem above, but not doing the same thing, as you will see, but it should give you the idea about how generators work.
And now the version, which should do what you want.
Ciao