local a,b,c = generator_fn()
a(b,-1)
a(b,1024)
?
Ah yes. I forgot that one could obtain and call the iterator function directly with arbitrary values. I told you I was rusty (but apparently not in the area I thought I was). Maybe I should start using less Python and more Lua to keep the latter skills up.